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

Breadcrumb

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

function Extension::addAnnotatedClassesToCompile

Adds annotated classes to the class cache.

Parameters

string[] $annotatedClasses An array of class patterns:

Deprecated

since Symfony 7.1, to be removed in 8.0

File

vendor/symfony/http-kernel/DependencyInjection/Extension.php, line 48

Class

Extension
Allow adding classes to the class cache.

Namespace

Symfony\Component\HttpKernel\DependencyInjection

Code

public function addAnnotatedClassesToCompile(array $annotatedClasses) : void {
    trigger_deprecation('symfony/http-kernel', '7.1', 'The "%s()" method is deprecated since Symfony 7.1 and will be removed in 8.0.', __METHOD__);
    $this->annotatedClasses = array_merge($this->annotatedClasses, $annotatedClasses);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal