Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AttributeClassLoader.php

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\Loader

Code

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);
}
RSS feed
Powered by Drupal