function AttributeClassLoader::setRouteAnnotationClass
Deprecated
since Symfony 7.2, use "setRouteAttributeClass(string $class)" instead
Sets the annotation class to read route properties from.
File
-
vendor/
symfony/ routing/ Loader/ AttributeClassLoader.php, line 73
Class
- AttributeClassLoader
- AttributeClassLoader loads routing information from a PHP class and its methods.
Namespace
Symfony\Component\Routing\LoaderCode
public function setRouteAnnotationClass(string $class) : void {
trigger_deprecation('symfony/routing', '7.2', 'The "%s()" method is deprecated, use "%s::setRouteAttributeClass()" instead.', __METHOD__, self::class);
$this->setRouteAttributeClass($class);
}