Get the decorators

@return KObjectConfig
779000
public function getDecorators()
    {
        if(!isset($this->getConfig()->decorators)) {
            $this->getConfig()->append(array('decorators' => array()));
        }

        return $this->getConfig()->decorators;
    }
230495
public function getServiceConfig()
    {
        return array(
            'aliases' => array(
                'dlccategory_doctrine_em' => 'doctrine.entitymanager.orm_default',
            ),
            
            'invokables' => array(
                'dlccategory_category_mapper'   => 'DlcCategory\Mapper\Category',
                'dlccategory_category_service'  => 'DlcCategory\Service\Category',
                'dlccategory_setup_service'     => 'DlcCategory\Service\Setup',
            ),
            
            'factories' => array(
                
                'dlccategory_category_hydrator' => function ($sm) {
                    $objectManager = $sm->get('dlccategory_doctrine_em');
                    $options       = $sm->get('dlccategory_module_options');
                    $hydrator      = new \DoctrineModule\Stdlib\Hydrator\DoctrineObject(
                            $objectManager,
                            $options->getCategoryEntityClass()
                    );
                    
                    return $hydrator;
                },
                
                'dlccategory_addcategory_form' => function ($sm) {
                    $form = new \DlcCategory\Form\AddCategory();
                    $form->setServiceLocator($sm);
                    $form->init();
                    return $form;
                },
                
                'dlccategory_editcategory_form' => function ($sm) {
                    $form = new \DlcCategory\Form\EditCategory();
                    $form->setServiceLocator($sm);
                    $form->init();
                    return $form;
                },
            
                'dlccategory_module_options' => function ($sm) {
                    $config = $sm->get('Config');
                    return new Options\ModuleOptions(isset($config['dlccategory_module_options']) ? $config['dlccategory_module_options'] : array());
                },
                
                'dlccategory_nestedset_config' => function ($sm) {
                    $em = $sm->get('dlccategory_doctrine_em');
                    $options = $sm->get('dlccategory_module_options');
                    
                    $config = new \DoctrineExtensions\NestedSet\Config($em, $options->getCategoryEntityClass());
                    return $config;
                },
                
                'dlccategory_nestedset_manager' => function ($sm) {
                    $manager = new \DoctrineExtensions\NestedSet\Manager($sm->get('dlccategory_nestedset_config'));
                    return $manager;
                },
            ),
        );
    }
1188490
public function getConfigFactory() {
    if (empty($this->configFactory)) {
      $this->configFactory = \Drupal::service('config.factory');
    }
    return $this->configFactory;
  }
823918
protected static function getConfigResolver()
    {
        if ( self::$configResolver == null )
        {
            self::init();
        }
        if ( self::$configResolver == null )
        {
            throw new RuntimeException( 'resolver not injected' );
        }
        return self::$configResolver;
    }
493189
public function getInitializers()
	{
		$initializers = $this->initializers;
		
		foreach(clone $this->decorators as $decorator)
		{
			$initializers[] = $decorator;
		}
		
		return $initializers;
	}
99344
public function loadDefaultDecorators()
    {
        if ($this->loadDefaultDecoratorsIsDisabled()) {
            return $this;
        }

        $decorators = $this->getDecorators();
        if (empty($decorators)) {
            $this->addDecorator('FormElements')
                 ->addDecorator(array('table' => 'HtmlTag'), array('tag' => 'table', 'class'=>'formTable'))
                 ->addDecorator(array('tab' => 'HtmlTag'), array('tag' => 'div', 'class' => 'displayGroup'))
                 ->addDecorator('TabPane', array('jQueryParams' => array('containerId' => 'mainForm',
                                                                         'title' => $this->getAttrib('title'))));
        }
        return $this;
    }
1292327
public function getViewHelperConfig()
    {
        return array(
            'invokables'            => array(
                'layout'                    => 'Zork\View\Helper\Layout',
                'messenger'                 => 'Zork\View\Helper\Messenger',
                'htmlTag'                   => 'Zork\View\Helper\HtmlTag',
                'headTitle'                 => 'Zork\View\Helper\HeadTitle',
                'openGraph'                 => 'Zork\View\Helper\OpenGraph',
                'escapeCss'                 => 'Zork\View\Helper\EscapeCss',
                'escapeHtml'                => 'Zork\View\Helper\EscapeHtml',
                'escapeHtmlAttr'            => 'Zork\View\Helper\EscapeHtmlAttr',
                'escapeJs'                  => 'Zork\View\Helper\EscapeJs',
                'escapeUrl'                 => 'Zork\View\Helper\EscapeUrl',
                'date'                      => 'Zork\I18n\View\Helper\Date',
                'dateTime'                  => 'Zork\I18n\View\Helper\DateTime',
                'relativeTime'              => 'Zork\I18n\View\Helper\RelativeTime',
                'form'                      => 'Zork\Form\View\Helper\Form',
                'formRadio'                 => 'Zork\Form\View\Helper\FormRadio',
                'formSelect'                => 'Zork\Form\View\Helper\FormSelect',
                'formCheckbox'              => 'Zork\Form\View\Helper\FormCheckbox',
                'formPassword'              => 'Zork\Form\View\Helper\FormPassword',
                'formRadioGroup'            => 'Zork\Form\View\Helper\FormRadioGroup',
                'formElement'               => 'Zork\Form\View\Helper\FormElement',
                'formFieldset'              => 'Zork\Form\View\Helper\FormFieldset',
                'formCollection'            => 'Zork\Form\View\Helper\FormCollection',
                'formMultiCheckbox'         => 'Zork\Form\View\Helper\FormMultiCheckbox',
                'formMultiCheckboxGroup'    => 'Zork\Form\View\Helper\FormMultiCheckboxGroup',
                'captcha/regeneratable'     => 'Zork\Form\View\Helper\Captcha\Regeneratable',
                'markdown'                  => 'Grid\Core\View\Helper\Markdown',
            ),
            'aliases'               => array(
                'Zend\Session\SessionManager'   => 'sessionManager',
                'Zend\Session\ManagerInterface' => 'sessionManager',
            ),
            'factories'             => array(
                'sessionManager'    => array( $this, 'getSessionManager' ),
                'config'            => array( $this, 'getConfigViewHelper' ),
                'domain'            => array( $this, 'getDomainViewHelper' ),
                'locale'            => array( $this, 'getLocaleViewHelper' ),
                'adminLocale'       => array( $this, 'getAdminLocaleViewHelper' ),
                'appService'        => array( $this, 'getAppServiceViewHelper' ),
                'authentication'    => array( $this, 'getAuthenticationViewHelper' ),
                'viewWidget'        => array( $this, 'getViewWidgetViewHelper' ),
                'isModuleLoaded'    => array( $this, 'getIsModuleLoadedViewHelper' ),
                'siteInfo'          => array( $this, 'getSiteInfoViewHelper' ),
                'uploads'           => array( $this, 'getUploadsViewHelper' ),
                'rowSet'            => array( $this, 'getRowSetViewHelper' ),
                'beforeContentWidget' => array( $this, 'getBeforeContentWidgetViewHelper' ),
            ),
        );
    }
1346806
protected function getGlobalContainerConfigurators(): Generator
    {
        // configurators from providers first
        $interfaceName = ProvidesContainerConfiguratorsInterface::class;
        foreach ($this->selectClassImplements($this->getProviderClasses(), $interfaceName) as $providerClass) {
            /** @var ProvidesContainerConfiguratorsInterface $providerClass */
            foreach ($providerClass::getContainerConfigurators() as $configuratorClass) {
                $configurator = [$configuratorClass, ContainerConfiguratorInterface::CONTAINER_METHOD_NAME];
                assert($this->isValidContainerConfigurator($configurator) === true);
                yield $configurator;
            }
        }

        // then configurators from the application so they can override providers
        $interfaceName = ContainerConfiguratorInterface::class;
        foreach ($this->selectClasses($this->getConfiguratorsPath(), $interfaceName) as $configuratorClass) {
            $configurator = [$configuratorClass, ContainerConfiguratorInterface::CONTAINER_METHOD_NAME];
            assert($this->isValidContainerConfigurator($configurator) === true);
            yield $configurator;
        }
    }
892926
public static function getMethodAnnotations($class, $method)
    {
        $annotationBag = Bridge\Loader::getInstance()->getMethodAnnotations($class, $method);
        $annotationBag = self::explodeNamespaces($annotationBag);

        return new ConfigObject($annotationBag);
    }
133970
protected function _initialize(KObjectConfig $config)
    {
        $self = $this;

        $config->append(array(
            'autoescape'       => true,
            'strict_variables' => false,
            'optimizations'    => -1,
            'functions'        => array(
                'import' => function($url, $data) use($self) {
                    return $self->_import($url, $data);
                }
            ),
        ));

        parent::_initialize($config);
    }
1178785
public function getViewHelperConfig()
    {
        return array(
            'factories' => array(
                'calendar' => function ($vhm) {
                    $helper = new \BmCalendar\View\Helper\Calendar();

                    $helper->setRenderer(new \BmCalendar\Renderer\HtmlCalendar());

                    return $helper;
                }
            ),
        );
    }
1123952
public function &getImagesConfig()
    {
        if (!isset($this->_imagesConfigCache)) {
            $this->_imagesConfigCache = new CKFinder_Connector_Core_ImagesConfig(isset($GLOBALS['config']['Images']) ? $GLOBALS['config']['Images'] : array());
        }

        return $this->_imagesConfigCache;
    }
216206
protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'layout'           => 'joomla',
            'template_filters' => ['module', 'style', 'link', 'meta', 'script', 'title', 'message'],
        ))->append(array(
            'decorator' => $config->layout
        ));

        parent::_initialize($config);
    }
517586
public function getInjectablePropertiesBySetter() {
    	if ($this->injectablePropertiesBySetter === null) {
    		$this->injectablePropertiesBySetter = MoufReflectionClass::staticGetInjectablePropertiesBySetter($this);
    	}
    	return $this->injectablePropertiesBySetter;
    }
500443
public function getConfigTreeBuilder()
    {
        // Solves Symfony 4.2 TreeBuilder deprecation
        if (method_exists(TreeBuilder::class, 'getRootNode')) {
            $treeBuilder = new TreeBuilder('knp_gaufrette');
            $rootNode    = $treeBuilder->getRootNode();
        } else {
            $treeBuilder = new TreeBuilder();
            $rootNode    = $treeBuilder->root('knp_gaufrette');
        }

        $this->addAdaptersSection($rootNode, $this->factories);
        $this->addFilesystemsSection($rootNode);
        $this->addStreamWrapperSection($rootNode);

        $rootNode
            // add a faux-entry for factories, so that no validation error is thrown
            ->fixXmlConfig('factory', 'factories')
            ->children()
                ->arrayNode('factories')->ignoreExtraKeys()->end()
            ->end()
        ;

        return $treeBuilder;
    }
1219600
public function getContext()
    {
        $context = new KDispatcherContext();

        $context->setSubject($this);
        $context->setRequest($this->getRequest());
        $context->setResponse($this->getResponse());
        $context->setUser($this->getUser());

        return $context;
    }
702641
public static function buildFkConfig()
    {
        $config = require Config::get('fk_adder.fk_datatypes_path');

        return collect($config)->map(function ($value, $fk) {
            list($datatype, $referenceTable) = (explode(',', $value.','));

            return new Fluent([
                'datatype' => trim($datatype),
                'referenceTable' => trim($referenceTable ?: BaseFk::guessReferenceTable($fk)),
            ]);
        });
    }