eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\Parser\Common::addSemanticConfig PHP Метод

addSemanticConfig() публичный Метод

Adds semantic configuration definition.
public addSemanticConfig ( Symfony\Component\Config\Definition\Builder\NodeBuilder $nodeBuilder )
$nodeBuilder Symfony\Component\Config\Definition\Builder\NodeBuilder Node just under ezpublish.system.
    public function addSemanticConfig(NodeBuilder $nodeBuilder)
    {
        $nodeBuilder->scalarNode('repository')->info('The repository to use. Choose among ezpublish.repositories.')->end()->arrayNode('database')->info('DEPRECATED. Use ezpublish.repositories / repository settings instead.')->children()->enumNode('type')->values(array('mysql', 'pgsql', 'sqlite'))->info('The database driver. Can be mysql, pgsql or sqlite.')->end()->scalarNode('server')->end()->scalarNode('port')->end()->scalarNode('user')->cannotBeEmpty()->end()->scalarNode('password')->end()->scalarNode('database_name')->cannotBeEmpty()->end()->scalarNode('charset')->defaultValue('utf8')->end()->scalarNode('socket')->end()->arrayNode('options')->info('Arbitrary options, supported by your DB driver ("driver-opts" in PDO)')->example(array('foo' => 'bar', 'someOptionName' => array('one', 'two', 'three')))->useAttributeAsKey('key')->prototype('variable')->end()->end()->scalarNode('dsn')->info('Full database DSN. Will replace settings above.')->example('mysql://root:root@localhost:3306/ezdemo')->end()->end()->end()->scalarNode('cache_pool_name')->example('ez_site_x')->info('The cache pool name to use for a siteaccess / siteaccess-group, *must* be present under stash.caches: yml config. Default value is "default". NB! Setting is Deprecated, will be made redundant in future version.')->end()->scalarNode('var_dir')->cannotBeEmpty()->example('var/ezdemo_site')->info('The directory relative to web/ where files are stored. Default value is "var"')->end()->scalarNode('storage_dir')->cannotBeEmpty()->info("Directory where to place new files for storage, it's relative to var directory. Default value is 'storage'")->end()->scalarNode('binary_dir')->cannotBeEmpty()->info('Directory where binary files (from ezbinaryfile field type) are stored. Default value is "original"')->end()->scalarNode('session_name')->info('DEPRECATED. Use session.name instead.')->end()->arrayNode('session')->info('Session options. Will override options defined in Symfony framework.session.*')->children()->scalarNode('name')->info('The session name. If you want a session name per siteaccess, use "{siteaccess_hash}" token. Will override default session name from framework.session.name')->example(array('session' => array('name' => 'eZSESSID{siteaccess_hash}')))->end()->scalarNode('cookie_lifetime')->end()->scalarNode('cookie_path')->end()->scalarNode('cookie_domain')->end()->booleanNode('cookie_secure')->end()->booleanNode('cookie_httponly')->end()->end()->end()->scalarNode('pagelayout')->info('The default layout to use')->example('AppBundle::pagelayout.html.twig')->end()->scalarNode('index_page')->info('The page that the index page will show. Default value is null.')->example('/Getting-Started')->end()->scalarNode('default_page')->info('The default page to show, e.g. after user login this will be used for default redirection. If provided, will override "default_target_path" from security.yml.')->example('/Getting-Started')->end()->arrayNode('http_cache')->info('Settings related to Http cache')->cannotBeEmpty()->children()->arrayNode('purge_servers')->info('Servers to use for Http PURGE (will NOT be used if ezpublish.http_cache.purge_type is "local").')->example(array('http://localhost/', 'http://another.server/'))->requiresAtLeastOneElement()->prototype('scalar')->end()->end()->end()->end()->scalarNode('anonymous_user_id')->cannotBeEmpty()->example('10')->info('The ID of the user used for everyone who is not logged in.')->end()->arrayNode('user')->children()->scalarNode('layout')->info('Layout template to use for user related actions. This is most likely the base pagelayout template of your site.')->example(array('layout' => 'eZDemoBundle::pagelayout.html.twig'))->end()->scalarNode('login_template')->info('Template to use for login form. Defaults to EzPublishCoreBundle:security:login.html.twig')->example(array('login_template' => 'AcmeTestBundle:User:login.html.twig'))->end()->end()->end();
    }