Documentation

CheckDefinitionValidityPass
in package
implements CompilerPassInterface

This pass validates each definition individually only taking the information into account which is contained in the definition itself.

Later passes can rely on the following, and specifically do not need to perform these checks themselves:

  • non synthetic, non abstract services always have a class set
  • synthetic services are always public
Tags
author

Johannes M. Schmitt schmittjoh@gmail.com

Table of Contents

Interfaces

CompilerPassInterface
Interface that must be implemented by compilation passes.

Methods

process()  : void
Processes the ContainerBuilder to validate the Definition.
validateAttributes()  : void

Methods

validateAttributes()

private validateAttributes(string $id, string $tag, array<string|int, mixed> $attributes[, array<string|int, mixed> $path = [] ]) : void
Parameters
$id : string
$tag : string
$attributes : array<string|int, mixed>
$path : array<string|int, mixed> = []

        
On this page

Search results