/** * Bundle configuration structure * * {@inheritdoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_google_integration'); SettingsBuilder::append($rootNode, ['domains' => ['value' => [], 'type' => 'array'], 'client_id' => ['value' => null, 'type' => 'text'], 'client_secret' => ['value' => null, 'type' => 'text']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('marello_sales'); SettingsBuilder::append($rootNode, ['default_channels' => ['value' => null]]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_data_grid'); SettingsBuilder::append($rootNode, ['default_per_page' => ['value' => 25], 'full_screen_layout_enabled' => ['type' => 'boolean', 'value' => true]]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('diamante_email_processing'); SettingsBuilder::append($rootNode, array('mailbox_server_address' => array('value' => '', 'type' => 'scalar'), 'mailbox_port' => array('value' => '', 'type' => 'scalar'), 'mailbox_ssl' => array('value' => false, 'type' => 'bool'), 'mailbox_username' => array('value' => '', 'type' => 'scalar'), 'mailbox_password' => array('value' => '', 'type' => 'password'), 'mailbox_delete_processed_messages' => ['value' => false, 'type' => 'bool'], 'mailbox_help' => ['type' => 'array'])); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('orob2b_product'); SettingsBuilder::append($rootNode, ['unit_rounding_type' => ['value' => RoundingService::HALF_UP], 'default_visibility' => ['value' => Product::VISIBILITY_VISIBLE]]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('pim_notification')->children()->booleanNode('version_update')->defaultTrue()->end()->end(); SettingsBuilder::append($rootNode, ['version_update' => ['value' => true]]); return $treeBuilder; }
/** * {@inheritdoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root(OroEntityPaginationExtension::ALIAS); SettingsBuilder::append($rootNode, ['enabled' => ['type' => 'boolean', 'value' => true], 'limit' => ['type' => 'integer', 'value' => self::DEFAULT_LIMIT]]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_currency'); SettingsBuilder::append($rootNode, ['allowed_currencies' => ['value' => [], 'type' => 'array']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('atwix_mandrill'); SettingsBuilder::append($rootNode, ['api_key' => ['value' => ''], 'api_username' => ['value' => ''], 'enable_mandrill_integration' => ['value' => 0], 'smtp_host' => ['value' => 'smtp.mandrillapp.com'], 'smtp_port' => ['value' => '587']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_crm_hangouts_call')->children()->arrayNode('initial_apps')->defaultValue([['app_id' => '1088537665390', 'app_type' => 'LOCAL_APP', 'app_name' => 'OroHangoutsApp', 'base_path' => 'bundles/orocrmhangoutscall/hangouts-app']])->prototype('array')->children()->scalarNode('app_id')->isRequired()->end()->scalarNode('app_type')->defaultValue('ROOM_APP')->validate()->ifNotInArray(array('ROOM_APP', 'LOCAL_APP'))->thenInvalid('Invalid application type "%s"')->end()->end()->scalarNode('app_name')->end()->scalarNode('base_path')->end()->end()->end()->end()->end(); SettingsBuilder::append($rootNode, ['enable_google_hangouts_for_email' => ['value' => true, 'type' => 'boolean'], 'enable_google_hangouts_for_phone' => ['value' => true, 'type' => 'boolean']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_data_grid'); SettingsBuilder::append($rootNode, ['default_per_page' => ['value' => 25]]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('pim_ui')->children()->booleanNode('loading_message_enabled')->defaultTrue()->end()->end(); SettingsBuilder::append($rootNode, ['loading_message_enabled' => ['value' => true]]); return $treeBuilder; }
/** * {@inheritdoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_activity_list'); SettingsBuilder::append($rootNode, ['sorting_field' => ['value' => 'updatedAt'], 'sorting_direction' => ['value' => 'DESC'], 'per_page' => ['value' => 10], 'grouping' => ['value' => true]]); return $treeBuilder; }
/** * {@inheritdoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root(OroB2BAccountExtension::ALIAS); SettingsBuilder::append($rootNode, ['default_account_owner' => ['type' => 'string', 'value' => 1], 'registration_allowed' => ['type' => 'boolean', 'value' => true], 'confirmation_required' => ['type' => 'boolean', 'value' => true], 'send_password_in_welcome_email' => ['type' => 'boolean', 'value' => false]]); return $treeBuilder; }
/** * {@inheritdoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_report'); SettingsBuilder::append($rootNode, ['display_sql_query' => ['value' => false, 'type' => 'boolean']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_b2b_rfp'); SettingsBuilder::append($rootNode, ['default_request_status' => ['value' => 'open'], 'default_user_for_notifications' => null]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('diamante_desk')->children()->end(); SettingsBuilder::append($rootNode, array('email_notification' => array('value' => false, 'type' => 'boolean'))); return $treeBuilder; }
/** * {@inheritdoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_crm_campaign'); SettingsBuilder::append($rootNode, ['campaign_sender_email' => ['value' => sprintf('no-reply@%s.example', gethostname())], 'campaign_sender_name' => ['value' => 'Oro']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_form'); SettingsBuilder::append($rootNode, ['wysiwyg_enabled' => ['value' => true, 'type' => 'bool']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_crm_partner'); SettingsBuilder::append($rootNode, ['github_api_token' => ['value' => ''], 'github_teams' => ['value' => ''], 'github_organization' => ['value' => '']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_tracking'); SettingsBuilder::append($rootNode, array('dynamic_tracking_enabled' => ['value' => true], 'log_rotate_interval' => ['value' => 60], 'piwik_host' => ['value' => null], 'piwik_token_auth' => ['value' => null])); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_translation')->children()->arrayNode('js_translation')->addDefaultsIfNotSet()->children()->arrayNode('domains')->requiresAtLeastOneElement()->defaultValue(array('jsmessages', 'validators'))->prototype('scalar')->end()->end()->booleanNode('debug')->defaultValue('%kernel.debug%')->end()->end()->end()->arrayNode('api')->addDefaultsIfNotSet()->children()->arrayNode('crowdin')->addDefaultsIfNotSet()->children()->scalarNode('endpoint')->defaultValue('http://api.crowdin.net/api')->end()->end()->end()->arrayNode('oro_service')->addDefaultsIfNotSet()->children()->scalarNode('endpoint')->defaultValue('http://translations.orocrm.com/api')->end()->scalarNode('key')->defaultValue('')->end()->end()->end()->end()->end()->scalarNode('default_api_adapter')->defaultValue(self::DEFAULT_ADAPTER)->end()->scalarNode('debug_translator')->defaultFalse()->end()->end(); SettingsBuilder::append($rootNode, ['available_translations' => ['type' => 'array'], 'installed_translation_meta' => ['type' => 'array']]); return $treeBuilder; }
/** * Bundle configuration structure * * @return TreeBuilder */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_sso'); SettingsBuilder::append($rootNode, ['enable_google_sso' => ['value' => false, 'type' => 'boolean'], 'domains' => ['value' => [], 'type' => 'array']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('diamante_front'); SettingsBuilder::append($rootNode, array('registration_required' => array('value' => '', 'type' => 'scalar'))); return $treeBuilder; }
public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('diamante_cloud')->children()->end(); SettingsBuilder::append($rootNode, ['dropbox_enabled' => ['value' => false], 'dropbox_auth_link' => ['value' => '']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('atwix_hotkeys'); SettingsBuilder::append($rootNode, array('hotkeys_enabled' => array('value' => true, 'type' => 'boolean'))); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_email'); $rootNode->children()->arrayNode('email_sync_exclusions')->info('Determines which email address owners should be excluded during synchronization.')->example(['Oro\\Bundle\\UserBundle\\Entity\\User'])->treatNullLike([])->prototype('scalar')->end()->end()->end()->end(); SettingsBuilder::append($rootNode, ['signature' => ['value' => ''], 'append_signature' => ['value' => true], 'use_threads_in_emails' => ['value' => true]]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_ui'); $rootNode->children()->booleanNode('show_pin_button_on_start_page')->defaultValue(true)->info('Not used since 1.5, config node is deprecated and still there only for BC')->end()->arrayNode('placeholders')->useAttributeAsKey('name')->prototype('array')->children()->append($this->getPlaceholdersConfigTree())->end()->end()->end()->append($this->getPlaceholderItemsConfigTree())->end(); SettingsBuilder::append($rootNode, ['organization_name' => ['value' => 'ORO'], 'application_url' => ['value' => 'http://localhost/oro/'], 'navbar_position' => ['value' => 'top']]); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_ui'); $rootNode->children()->scalarNode('wrap_class')->cannotBeEmpty()->defaultValue('block-wrap')->end()->arrayNode('placeholders_items')->useAttributeAsKey('name')->prototype('array')->children()->arrayNode('items')->prototype('array')->children()->booleanNode('remove')->defaultValue(false)->end()->scalarNode('placeholder')->end()->scalarNode('order')->end()->end()->end()->end()->end()->end(); SettingsBuilder::append($rootNode, array('application_name' => array('value' => 'ORO', 'type' => 'scalar'), 'application_title' => array('value' => 'ORO Business Application Platform', 'type' => 'scalar'))); return $treeBuilder; }
/** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('oro_email'); $rootNode->children()->arrayNode('email_sync_exclusions')->info('Determines which email address owners should be excluded during synchronization.')->example(['Oro\\Bundle\\UserBundle\\Entity\\User'])->treatNullLike([])->prototype('scalar')->end()->end()->arrayNode('flash_notification')->addDefaultsIfNotSet()->children()->integerNode('max_emails_display')->defaultValue(4)->end()->end()->end()->end()->end(); SettingsBuilder::append($rootNode, ['signature' => ['value' => ''], 'append_signature' => ['value' => true], 'default_button_reply' => ['value' => true], 'use_threads_in_emails' => ['value' => true], 'minimum_input_length' => ['value' => 2]]); return $treeBuilder; }