Symfony配置数组添加新项

时间:2015-09-23 12:10:50

标签: php symfony configuration yaml

我遇到symfony 2.7。*配置问题。我想在配置中覆盖一些参数。在我的代码的某处我有

unsecured_controllers:
    - 'Bazinga\Bundle\JsTranslationBundle\Controller\Controller'
    - 'Gromar\Common\Infrastructure\WebBundle\Controller\ExceptionController'
    - 'Gromar\Common\UI\Menu\WebBundle\Controller\ContextMenuController'
    - 'Gromar\Common\UI\Menu\WebBundle\Controller\MainMenuController'
    - 'Gromar\Common\UI\Theme\WebBundle\Controller\ExceptionController'
    - 'Gromar\Common\UserManagement\WebBundle\Controller\AccountController'
    - 'Gromar\Common\UserManagement\WebBundle\Controller\UserOrganizationStructureDefaultController'
    - 'Gromar\Common\Message\WebBundle\Controller\MessageUnreadController'
    - 'Gromar\Common\Notification\WebBundle\Controller\NotificationToolbarController'

我想在这个数组中添加更多项目。我能以某种方式添加它而不是重新定义整个数组吗?

0 个答案:

没有答案