Extension/AbstractExtension.php
private function initContextConfigurators()
    {
        $this->contextConfigurators = [];

        foreach ($this->loadContextConfigurators() as $configurator) {
            if (!$configurator instanceof ContextConfiguratorInterface) {
                throw new Exception\UnexpectedTypeException(
                    $configurator,
                    'Oro\Component\Layout\ContextConfiguratorInterface'
                );
            }

            $this->contextConfigurators[] = $configurator;
        }
    }
private function initContextConfigurators()
    {
        $this->contextConfigurators = [];

        foreach ($this->loadContextConfigurators() as $configurator) {
            if (!$configurator instanceof ContextConfiguratorInterface) {
                throw new Exception\UnexpectedTypeException(
                    $configurator,
                    'Oro\Component\Layout\ContextConfiguratorInterface'
                );
            }

            $this->contextConfigurators[] = $configurator;
        }
    }
private function initContextConfigurators ( ) { $ this -> contextConfigurators = [ ] ; foreach ( $ this -> loadContextConfigurators ( ) as $ configurator ) { if ( ! $ configurator instanceof ContextConfiguratorInterface ) { throw new Exception \ UnexpectedTypeException ( $ configurator , 'Oro\Component\Layout\ContextConfiguratorInterface' ) ; } $ this -> contextConfigurators [ ] = $ configurator ; } }
Initializes layout context configurators.

@throws Exception\UnexpectedTypeException if any registered context configurators is not
an instance of ContextConfiguratorInterface
Initializes layout context configurators .