Bolt\Extension\ConfigTrait::extendConfigService PHP Method

extendConfigService() protected method

Call this in register method.
protected extendConfigService ( )
    protected function extendConfigService()
    {
        $app = $this->getContainer();
        foreach ((array) $this->registerFields() as $fieldClass) {
            if ($fieldClass instanceof FieldInterface) {
                $app['config']->getFields()->addField($fieldClass);
            }
        }
    }