protected function configureContainer(Container $container)
    {
        /* @var $application Application */
        $application = $container->getEntity();
        $job         = $application->getJob();

        /** @var $settings \Applications\Entity\Settings */
        $settings = ($user = $job->getUser()) ? $user->getSettings('Applications') : null;
        $formSettings = $settings ? $settings->getApplyFormSettings() : null;

        if ($formSettings && $formSettings->isActive()) {
            $container->disableElements($formSettings->getDisableElements());
            return;
        }

        $config = $this->config;
        $config = isset($config['form_elements_config']['Applications/Apply']['disable_elements'])
                ? $config['form_elements_config']['Applications/Apply']['disable_elements']
                : null;
        if ($config) {
            $container->disableElements($config);
        }
    }
protected function configureContainer(Container $container)
    {
        /* @var $application Application */
        $application = $container->getEntity();
        $job         = $application->getJob();

        /** @var $settings \Applications\Entity\Settings */
        $settings = ($user = $job->getUser()) ? $user->getSettings('Applications') : null;
        $formSettings = $settings ? $settings->getApplyFormSettings() : null;

        if ($formSettings && $formSettings->isActive()) {
            $container->disableElements($formSettings->getDisableElements());
            return;
        }

        $config = $this->config;
        $config = isset($config['form_elements_config']['Applications/Apply']['disable_elements'])
                ? $config['form_elements_config']['Applications/Apply']['disable_elements']
                : null;
        if ($config) {
            $container->disableElements($config);
        }
    }
protected function configureContainer ( Container $ container ) { /* @var $application Application */ $ application = $ container -> getEntity ( ) ; $ job = $ application -> getJob ( ) ; /** @var $settings \Applications\Entity\Settings */ $ settings = ( $ user = $ job -> getUser ( ) ) ? $ user -> getSettings ( 'Applications' ) : null ; $ formSettings = $ settings ? $ settings -> getApplyFormSettings ( ) : null ; if ( $ formSettings && $ formSettings -> isActive ( ) ) { $ container -> disableElements ( $ formSettings -> getDisableElements ( ) ) ; return ; } $ config = $ this -> config ; $ config = isset ( $ config [ 'form_elements_config' ] [ 'Applications/Apply' ] [ 'disable_elements' ] ) ? $ config [ 'form_elements_config' ] [ 'Applications/Apply' ] [ 'disable_elements' ] : null ; if ( $ config ) { $ container -> disableElements ( $ config ) ; } }
Configures the apply form container.

Currently only disables elements.

@param Container $container
Configures the apply form container .