Editace role
@param Container $container
777277
public function roleForm(Container $container): void
	{
		$roles = ['' => $this->translate('form.none')] + $this->orm->aclRoles->fetchPairs($this->viewSuperadmin);
		$container->addText('title', 'cms.permissions.role')
			->setRequired();
		$container->addText('name', 'cms.permissions.name')
			->setRequired();
		$container->addSelect('parent', $this->translate('cms.permissions.parent'))
			->setTranslator()
			->setItems($roles);
	}
1192067
public function handle(Container $container)
    {
        $class = new \ReflectionClass(get_class($this->methodInvocation->getThis()));
        if ($class->getFileName()) {
            $method = $this->methodInvocation->getMethod()->getName();
            $container->call(
                [
                    $this->methodInvocation->getThis(),
                    $method,
                ],
                $this->methodInvocation->getArguments()->getArrayCopy()
            );
        }
    }
71584
public function boot(Container $container)
    {
        $config = $container->get('config');

        if (!$config->get('system.debug')) {
            return;
        }

        $error = $container->get('error.handler');

        /**
         * @param \Exception|\Throwable $e
         *
         * @return  void
         */
        $handler = function ($e) use ($container) {
            /** @var Whoops $whoops */
            $whoops = $container->get('whoops');
            $whoops->allowQuit(false);
            $whoops->handleException($e);
        };

        $error->addHandler($handler, 'default');
    }
1088695
public function handle(Container $container) {
        $fieldSet = $container->make($this->argument('field'));

        $this->heading('Field Set');

        $fields = [];
        foreach($fieldSet->getFields() as $field) {
            $fields[] = $this->getFieldInformation($field);
        }
        $this->table($this->fieldHeaders, $fields);
    }
1140559
public function provideServiceLayerDependencies(Container $container)
    {
        $container = parent::provideServiceLayerDependencies($container);

        $container = $this->addStoreClient($container);

        return $container;
    }
1359988
protected function setDependencies(Container $container)
    {
        parent::setDependencies($container);

        $this->setDebug($container['debug']);
        $this->setTranslator($container['translator']);
        $this->setAppConfig($container['config']);
        $this->setBaseUrl($container['base-url']);

        $metatags = $this->appConfig('cms.metatags');
        if (is_array($metatags)) {
            $this->setSeoMetadata($metatags);
        }
    }
388225
public function process(ContainerBuilder $container)
    {
        $this->loader = $container->get('sulu.content.path_cleaner.replacer_loader');

        $service = $container->getDefinition('sulu.content.path_cleaner');
        $replacers = $this->loader->load($this->filename);
        $service->addArgument($replacers);
    }
560420
protected function prepareContainer(Container $container)
    {
        foreach ($this->getKernelParameters() as $key => $value) {
            $container[$key] = $value;
        }

        $container->set('kernel', $this);
        $container->set('configuration', $this->configuration);
        $container->set('request', $this->request);
        $container->set('request_stack', $this->requestStack);
        $container->set('session', $this->session);
    }
1138830
public function setContainer(Symfony\Component\DependencyInjection\Container $container) {
        $this->container = $container;

        return $this;
    }
1031162
public function iconMenu(\Zend_Navigation_Container $container = null)
    {
        if (null !== $container) {
            $this->setContainer($container);
        }

        return $this;
    }
1325869
protected function setDependencies(Container $container)
    {
        $this->setTranslator($container['translator']);
        $this->setAuthenticator($container['authenticator']);
        $this->setAuthorizer($container['authorizer']);
    }
1172780
protected function setDependencies(Container $container)
    {
        parent::setDependencies($container);

        $this->setView($container['view']);
        $this->setPropertyFactory($container['property/factory']);
        $this->setPropertyInputFactory($container['property/input/factory']);
        $this->setPropertyDisplayFactory($container['property/display/factory']);
    }
238433
protected function configureAop(AspectContainer $container): void
    {
        /** @var AnnotationReader $reader */
        $reader = $container->get('aspect.annotation.reader');

        $container->registerAspect(new InvariantCheckerAspect($reader));
        $container->registerAspect(new PostconditionCheckerAspect($reader));
        $container->registerAspect(new PreconditionCheckerAspect($reader));
        $container->registerAspect(new InheritCheckerAspect($reader));
    }
94488
public function process(ContainerBuilder $container)
    {
        $this->compiler = $container->getCompiler();
        $this->formatter = $this->compiler->getLoggingFormatter();

        $container->setDefinitions($this->resolveArguments($container, $container->getDefinitions(), true));
    }
140012
public function register(Container $container)
    {
        $container->prepareSharedObject(RendererManager::class, [$this, 'manager']);
        $container->prepareSharedObject(PackageFinder::class);
        $container->share(WidgetManager::class, [$this, 'widget']);
    }
19202
public function register(Container $container)
    {
        $this->registerConfig($container);
        $this->reggisterDateHelper($container);
        $this->registerSectionServices($container);
        $this->registerNewsServices($container);
        $this->registerEventServices($container);
    }
1189704
protected function setDependencies(Container $container)
    {
        parent::setDependencies($container);

        $this->setAppConfig($container['config']);
        $this->setModelFactory($container['model/factory']);
    }