ValidateConfigNameListener
class ValidateConfigNameListener (View source)
Traits
A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.
Methods
static
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
from
AutowireTrait
__construct(ConfigFactoryInterface $configFactory, LoggerInterface $logger)
No description
void
__invoke(ConsoleCommandEvent $event)
This subscriber operates on commands which put #[ValidateConfigName] on the class.
Details
static
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
__construct(ConfigFactoryInterface $configFactory, LoggerInterface $logger)
No description
void
__invoke(ConsoleCommandEvent $event)
This subscriber operates on commands which put #[ValidateConfigName] on the class.
Method usages are enforced by Annotated Command still.