class RegisterServicesForDestructionPass

Adds services tagged "needs_destruction" to the "kernel_destruct_subscriber" service.

Hierarchy

See also

\Drupal\Core\DestructableInterface

File

core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterServicesForDestructionPass.php, line 14

Namespace

Drupal\Core\DependencyInjection\Compiler

Members

Name Modifiers Type Description
RegisterServicesForDestructionPass::process public function You can modify the container here before it is dumped to PHP code. Overrides CompilerPassInterface::process

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DependencyInjection!Compiler!RegisterServicesForDestructionPass.php/class/RegisterServicesForDestructionPass/8.1.x