Files
kupshop/bundles/KupShop/KupShopBundle/Routing/SimpleTranslatedRoute.php
2025-08-02 16:30:27 +02:00

24 lines
536 B
PHP

<?php
namespace KupShop\KupShopBundle\Routing;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
/**
* Class TranslatedRoute.
*
* @Annotation
* @NamedArgumentConstructor
* @Target({"CLASS", "METHOD"})
*/
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class SimpleTranslatedRoute extends TranslatedRoute
{
public function getOptions()
{
return array_merge(parent::getOptions(), [
'translated_route' => 'simple',
]);
}
}