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