コード例 #1
0
ファイル: Configuration.php プロジェクト: hason/paymentsuite
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('bankwire');
     $rootNode->children()->scalarNode('controller_route')->defaultValue('/payment/bankwire/execute')->end()->arrayNode('payment_success')->children()->scalarNode('route')->isRequired()->cannotBeEmpty()->end()->booleanNode('order_append')->defaultTrue()->end()->scalarNode('order_append_field')->defaultValue('order_id')->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #2
0
 /**
  * Generates the configuration tree.
  *
  * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('sonata_doctrine_orm_admin', 'array');
     $rootNode->children()->scalarNode('entity_manager')->defaultNull()->end()->arrayNode('audit')->addDefaultsIfNotSet()->children()->booleanNode('force')->defaultTrue()->end()->end()->end()->arrayNode('templates')->addDefaultsIfNotSet()->children()->arrayNode('form')->prototype('scalar')->end()->defaultValue(array('SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig'))->end()->arrayNode('filter')->prototype('scalar')->end()->defaultValue(array('SonataDoctrineORMAdminBundle:Form:filter_admin_fields.html.twig'))->end()->arrayNode('types')->children()->arrayNode('list')->useAttributeAsKey('name')->prototype('scalar')->end()->end()->arrayNode('show')->useAttributeAsKey('name')->prototype('scalar')->end()->end()->end()->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('sonata_news');
     $rootNode->children()->scalarNode('title')->isRequired()->end()->scalarNode('link')->isRequired()->end()->scalarNode('description')->isRequired()->end()->scalarNode('permalink_generator')->defaultValue('sonata.news.permalink.date')->end()->scalarNode('salt')->isRequired()->end()->arrayNode('permalink')->addDefaultsIfNotSet()->children()->scalarNode('date')->defaultValue('%%1$04d/%%2$d/%%3$d/%%4$s')->end()->end()->end()->arrayNode('table')->addDefaultsIfNotSet()->children()->scalarNode('post_tag')->defaultValue('news__post_tag')->end()->end()->end()->arrayNode('class')->addDefaultsIfNotSet()->children()->scalarNode('tag')->defaultValue('Application\\Sonata\\ClassificationBundle\\Entity\\Tag')->end()->scalarNode('collection')->defaultValue('Application\\Sonata\\ClassificationBundle\\Entity\\Collection')->end()->scalarNode('post')->defaultValue('Application\\Sonata\\NewsBundle\\Entity\\Post')->end()->scalarNode('comment')->defaultValue('Application\\Sonata\\NewsBundle\\Entity\\Comment')->end()->scalarNode('media')->defaultValue('Application\\Sonata\\MediaBundle\\Entity\\Media')->end()->scalarNode('user')->defaultValue('Application\\Sonata\\UserBundle\\Entity\\User')->end()->end()->end()->arrayNode('admin')->addDefaultsIfNotSet()->children()->arrayNode('post')->addDefaultsIfNotSet()->children()->scalarNode('class')->cannotBeEmpty()->defaultValue('Sonata\\NewsBundle\\Admin\\PostAdmin')->end()->scalarNode('controller')->cannotBeEmpty()->defaultValue('SonataAdminBundle:CRUD')->end()->scalarNode('translation')->cannotBeEmpty()->defaultValue('SonataNewsBundle')->end()->end()->end()->arrayNode('comment')->addDefaultsIfNotSet()->children()->scalarNode('class')->cannotBeEmpty()->defaultValue('Sonata\\NewsBundle\\Admin\\CommentAdmin')->end()->scalarNode('controller')->cannotBeEmpty()->defaultValue('SonataNewsBundle:CommentAdmin')->end()->scalarNode('translation')->cannotBeEmpty()->defaultValue('SonataNewsBundle')->end()->end()->end()->end()->end()->arrayNode('comment')->children()->arrayNode('notification')->children()->arrayNode('emails')->prototype('scalar')->cannotBeEmpty()->end()->end()->scalarNode('from')->cannotBeEmpty()->end()->scalarNode('template')->cannotBeEmpty()->end()->end()->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #4
0
 /**
  * {@inheritdoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('eko_google_translate');
     $rootNode->children()->scalarNode('api_key')->isRequired()->end()->end();
     return $treeBuilder;
 }
コード例 #5
0
 /**
  * Generates the configuration tree builder for the shopify configuration entries
  *
  * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('codecloud_shopify');
     $rootNode->children()->arrayNode('credentials')->cannotBeEmpty()->children()->scalarNode('api_key')->cannotBeEmpty()->end()->scalarNode('shared_secret')->cannotBeEmpty()->end()->end()->end()->arrayNode('oauth')->children()->scalarNode('step1')->cannotBeEmpty()->end()->scalarNode('step2')->cannotBeEmpty()->end()->scalarNode('step3')->cannotBeEmpty()->end()->end()->end()->arrayNode('twig')->children()->scalarNode('enabled_embedded_helpers')->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #6
0
 /**
  * @inheritDoc
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('bravesheep_flysystem_url');
     $rootNode->children()->arrayNode('encoders')->addDefaultsIfNotSet()->children()->arrayNode('public_url_prefix')->addDefaultsIfNotSet()->children()->scalarNode('default')->defaultNull()->end()->scalarNode('web_dir')->defaultValue('%kernel.root_dir%/../web')->end()->end()->end()->end()->end()->arrayNode('urls')->prototype('array')->children()->scalarNode('url')->isRequired()->end()->scalarNode('prefix')->isRequired()->end()->arrayNode('encoders')->prototype('scalar')->end()->defaultValue(['oneup_flysystem', 'public_url_prefix'])->end()->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #7
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('xoeoro_bytehand');
     $rootNode->children()->scalarNode('id')->isRequired()->end()->scalarNode('key')->isRequired()->end()->scalarNode('from')->defaultValue('SMS-INFO')->end()->end();
     return $treeBuilder;
 }
コード例 #8
0
 /**
  * Generates the configuration tree.
  *
  * @return TreeBuilder
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('react_integration');
     $rootNode->children()->integerNode('test1')->end()->booleanNode('test2')->end()->end();
     return $treeBuilder;
 }
コード例 #9
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('meup_tagcommander');
     $rootNode->children()->scalarNode('default_event')->defaultValue('default')->end()->arrayNode('datalayer')->children()->scalarNode('name')->defaultValue('tc_vars')->end()->variableNode('default')->end()->end()->end()->arrayNode('containers')->isRequired()->requiresAtLeastOneElement()->prototype('array')->children()->scalarNode('name')->isRequired()->end()->scalarNode('script')->isRequired()->end()->scalarNode('version')->defaultValue('')->end()->scalarNode('alternative')->defaultValue('')->end()->end()->end()->end()->arrayNode('events')->isRequired()->requiresAtLeastOneElement()->prototype('array')->children()->scalarNode('name')->end()->scalarNode('function')->end()->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #10
0
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root($this->rootNodeName);
     $this->addConnectionsSection($rootNode);
     return $treeBuilder;
 }
コード例 #11
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('d_labs_worker');
     $rootNode->children()->arrayNode('redis')->prototype('array')->children()->scalarNode('client')->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #12
0
 /**
  * {@inheritdoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('espend_idea_badge');
     $rootNode->children()->scalarNode('badge_lifetime')->defaultValue(3600)->end()->scalarNode('route_path')->defaultValue('/badge/{id}/{provider}')->end()->scalarNode('badge_controller')->defaultValue('espend_idea_badge_bundle.badge.controller:showAction')->end()->scalarNode('monthly_storage_path')->isRequired()->end()->end();
     return $treeBuilder;
 }
コード例 #13
0
ファイル: Configuration.php プロジェクト: hd-deman/elcodi
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root(ElcodiNewsletterExtension::getExtensionName());
     $rootNode->children()->arrayNode('mapping')->addDefaultsIfNotSet()->children()->arrayNode('newsletter_subscription')->addDefaultsIfNotSet()->children()->scalarNode('class')->defaultValue('Elcodi\\Component\\Newsletter\\Entity\\NewsletterSubscription')->cannotBeEmpty()->end()->scalarNode('mapping_file')->defaultValue('@ElcodiNewsletterBundle/Resources/config/doctrine/NewsletterSubscription.orm.yml')->cannotBeEmpty()->end()->scalarNode('manager')->defaultValue('default')->cannotBeEmpty()->end()->end()->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #14
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('morbicer_converter');
     $rootNode->children()->scalarNode('default_provider')->defaultValue('chain')->cannotBeEmpty()->end()->arrayNode('providers')->children()->arrayNode('google')->end()->arrayNode('yahoo')->end()->arrayNode('currency_api')->prototype('scalar')->end()->end()->arrayNode('chain')->prototype('scalar')->end()->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #15
0
 /**
  * {@inheritdoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('itkg_delay_event');
     $rootNode->fixXmlConfig('channel')->children()->arrayNode('processor')->children()->arrayNode('retry_count')->children()->scalarNode('normal')->defaultValue(1)->end()->scalarNode('critic')->defaultValue(1)->end()->end()->end()->end()->end()->arrayNode('events')->prototype('array')->children()->enumNode('type')->values(['normal', 'critic'])->defaultValue('normal')->end()->end()->end()->end()->arrayNode('channels')->addDefaultChildrenIfNoneSet('default')->useAttributeAsKey('name')->prototype('array')->children()->integerNode('events_limit_per_run')->defaultNull()->min(0)->end()->integerNode('duration_limit_per_run')->defaultNull()->min(0)->end()->arrayNode('include')->prototype('scalar')->end()->end()->arrayNode('exclude')->prototype('scalar')->end()->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #16
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('presta_sitemap');
     $rootNode->children()->scalarNode('timetolive')->defaultValue('3600')->end()->scalarNode('sitemap_file_prefix')->defaultValue(self::DEFAULT_FILENAME)->info('Sets sitemap filename prefix defaults to "sitemap" -> sitemap.xml (for index); sitemap.<section>.xml(.gz) (for sitemaps)')->end()->scalarNode('dumper_base_url')->defaultValue('http://localhost/')->info('Deprecated: please use host option in command. Used for dumper command. Default host to use if host argument is missing')->end()->scalarNode('items_by_set')->defaultValue(XmlConstraint::LIMIT_ITEMS + 1)->info('The maximum number of items allowed in single sitemap.')->end()->scalarNode('route_annotation_listener')->defaultTrue()->end();
     return $treeBuilder;
 }
コード例 #17
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('ns_util');
     $rootNode->children()->scalarNode('template')->defaultValue('NSUtilBundle:Ajax:autocomplete.json.twig')->end();
     return $treeBuilder;
 }
コード例 #18
0
 /**
  * {@inheritdoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('houssrad_mango_pay');
     $rootNode->children()->scalarNode('mangopay_id')->isRequired()->end()->scalarNode('mangopay_password')->isRequired()->end()->scalarNode('mangopay_base_url')->isRequired()->end()->scalarNode('api_factory_class')->defaultValue('Houssrad\\MangoPayBundle\\ApiFactory\\Api')->cannotBeEmpty()->end();
     return $treeBuilder;
 }
コード例 #19
0
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $root = $treeBuilder->root('sirian_node_js');
     $root->useAttributeAsKey('name')->prototype('scalar')->end();
     return $treeBuilder;
 }
コード例 #20
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('alex_multisite');
     $rootNode->children()->booleanNode('sort_routes')->defaultTrue()->end()->scalarNode('default_branding')->isRequired()->end()->scalarNode('default_locale')->isRequired()->end()->arrayNode('default_config')->prototype('scalar')->end()->end()->arrayNode('brandings')->prototype('variable')->end()->end()->end();
     return $treeBuilder;
 }
コード例 #21
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('craue_twig_extensions');
     $rootNode->children()->arrayNode('enable_only')->prototype('scalar')->end()->defaultValue(array())->end()->end();
     return $treeBuilder;
 }
コード例 #22
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('qimnet_update_tracker');
     $rootNode->addDefaultsIfNotSet()->children()->scalarNode('entity_name')->defaultNull()->info('The entity in which the updates should be stored.')->end()->arrayNode('cache_manager')->addDefaultsIfNotSet()->children()->booleanNode('enabled')->info('True to enable the cache manager.')->defaultFalse()->end()->booleanNode('debug')->defaultFalse()->end()->scalarNode('prefix')->info('The prefix of the application for the cache.')->defaultNull()->end()->scalarNode('default_repository')->defaultValue('apc')->end()->scalarNode('ttl')->info('Default ttl for cache elements.')->defaultValue(86400)->end()->end()->end()->arrayNode('routing')->addDefaultsIfNotSet()->children()->scalarNode("timestamp_argument_name")->defaultValue("timestamp")->end()->end()->end()->arrayNode('response')->info('Defaults for generated responses.')->addDefaultsIfNotSet()->children()->scalarNode('default_max_age')->defaultValue(60)->end()->scalarNode('default_shared_max_age')->defaultValue(60)->end()->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #23
0
 /**
  * {@inheritdoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('avoo_demo');
     $this->addClassesSection($rootNode);
     return $treeBuilder;
 }
コード例 #24
0
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('acme_root');
     $rootNode->fixXmlConfig('parameter')->fixXmlConfig('connection')->children()->booleanNode('boolean')->defaultTrue()->end()->scalarNode('scalar_empty')->end()->scalarNode('scalar_null')->defaultNull()->end()->scalarNode('scalar_true')->defaultTrue()->end()->scalarNode('scalar_false')->defaultFalse()->end()->scalarNode('scalar_default')->defaultValue('default')->end()->scalarNode('scalar_array_empty')->defaultValue(array())->end()->scalarNode('scalar_array_defaults')->defaultValue(array('elem1', 'elem2'))->end()->scalarNode('scalar_required')->isRequired()->end()->enumNode('enum_with_default')->values(array('this', 'that'))->defaultValue('this')->end()->enumNode('enum')->values(array('this', 'that'))->end()->arrayNode('array')->info('some info')->canBeUnset()->children()->scalarNode('child1')->end()->scalarNode('child2')->end()->scalarNode('child3')->info("this is a long\n" . "multi-line info text\n" . 'which should be indented')->example('example setting')->end()->end()->end()->arrayNode('parameters')->useAttributeAsKey('name')->prototype('scalar')->end()->end()->arrayNode('connections')->prototype('array')->children()->scalarNode('user')->end()->scalarNode('pass')->end()->end()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #25
0
 /**
  * {@inheritdoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('accard_phase');
     $rootNode->addDefaultsIfNotSet()->children()->scalarNode('driver')->isRequired()->cannotBeEmpty()->end()->arrayNode('classes')->addDefaultsIfNotSet()->children()->end()->end()->end();
     return $treeBuilder;
 }
コード例 #26
0
ファイル: Configuration.php プロジェクト: rodw1995/vind-niet
 /**
  * {@inheritdoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('rodw_search_engine');
     $rootNode->children()->scalarNode('template')->isRequired()->cannotBeEmpty()->end()->scalarNode('subject')->defaultValue('Request for: {~search_query~}')->end()->scalarNode('send_to')->isRequired()->end()->end();
     return $treeBuilder;
 }
コード例 #27
0
 /**
  * {@inheritdoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('pugx_cmf_page');
     $rootNode->children()->scalarNode('title')->info('Define a title for the website (e.g. "My Awesome Site").')->isRequired()->end()->scalarNode('description')->info('Define a description for the website (e.g. "My Awesome Site SEO description."). ' . 'Will be used as default meta description.')->isRequired()->end()->scalarNode('keywords')->info('Define a list of comma separated keywords for the website (e.g. "awesome, pugx, cmf"). ' . 'Will be used as default meta keywords.')->isRequired()->end()->scalarNode('admin_logo')->info('Define the website logo path relative to web document root ' . '(e.g. "bundles/pugxcmfpage/logo.png"). Will be used in the administrative interface.')->isRequired()->end()->arrayNode('menu')->info('Define a list of menus to be created for your site; ' . 'for example { main: "Main Menu", footer: "Footer Menu" }.')->isRequired()->useAttributeAsKey('name')->prototype('scalar')->end()->end();
     return $treeBuilder;
 }
コード例 #28
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('kunstmaan_language_chooser');
     $rootNode->children()->arrayNode('languagechooserlocales')->defaultValue(array('en'))->prototype('scalar')->end()->end()->scalarNode('autodetectlanguage')->defaultValue(true)->end()->scalarNode('showlanguagechooser')->defaultValue(true)->end()->scalarNode('languagechoosertemplate')->defaultValue('KunstmaanLanguageChooserBundle:Default:language-chooser.html.twig')->end()->end();
     return $treeBuilder;
 }
コード例 #29
0
 /**
  * {@inheritdoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('basket_planner_team');
     $rootNode->children()->integerNode('created_teams_limit')->end()->integerNode('joined_teams_limit')->end()->end();
     return $treeBuilder;
 }
コード例 #30
0
 /**
  * {@inheritDoc}
  */
 public function getConfigTreeBuilder()
 {
     $treeBuilder = new TreeBuilder();
     $rootNode = $treeBuilder->root('world');
     $rootNode->children()->scalarNode('width')->isRequired()->end()->scalarNode('height')->isRequired()->end()->scalarNode('image')->isRequired()->end()->arrayNode('cartographer')->isRequired()->children()->scalarNode('directory')->isRequired()->end()->end()->end()->arrayNode('sections')->isRequired()->children()->scalarNode('width')->isRequired()->end()->scalarNode('height')->isRequired()->end()->scalarNode('directory')->isRequired()->end()->end()->end()->arrayNode('lands')->prototype('array')->children()->scalarNode('color')->isRequired()->end()->scalarNode('name')->isRequired()->end()->end()->end()->end()->arrayNode('panels')->prototype('array')->children()->scalarNode('name')->isRequired()->end()->arrayNode('tiles')->isRequired()->children()->scalarNode('directory')->isRequired()->end()->scalarNode('width')->isRequired()->end()->scalarNode('height')->isRequired()->end()->end()->end()->end()->end()->end()->end();
     return $treeBuilder;
 }