24 lines
536 B
PHP
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',
|
|
]);
|
|
}
|
|
}
|