php-cooper-symfony

CooperBundle extends AbstractBundle
in package

FinalYes

Cooper's console commands on `bin/console`, rooted at the application's `%kernel.project_dir%`:

  • cooper:init, cooper:check -- php-cooper-config's, unchanged;
  • cooper:import -- this package's: a bundle's YAML preset into CASC.

php-cooper-config's cooper:cache:clear is left off on purpose: the loaded configuration lives in the compiled container, which replaces php-cooper-config's compiled cache here, so that command would clear a cache nothing reads. cache:clear is the one that matters.

Loading the configuration is not the bundle's: CooperKernelTrait does it, before any bundle is asked for anything. The bundle takes no configuration of its own.

Table of Contents

Methods

loadExtension()  : void

Methods

loadExtension()

public loadExtension(array<string, mixed> $config, ContainerConfigurator $container, ContainerBuilder $builder) : void
Parameters
$config : array<string, mixed>

the bundle's (empty) configuration

$container : ContainerConfigurator

where the commands are registered

$builder : ContainerBuilder

the container being built

On this page

Search results