Adding new files that needs to be installed

Resource Bundles takes care about installing your resources. It can handle following types: - Object Classes - Field Collection Classes - Objectbrick Classes - Routes - Permissions - SQL Files

Object Classes, Field Collections and Objectbrick Classes

To install object classes, you need to configure your classes inside your Bundle and register them to Resource Bundle. (as described here)

Routes, SQL and Permissions

To install routes, permissions or execute sql files, configure them in your Bundle likes this:


namespace AppBundle\DependencyInjection;

final class Configuration implements ConfigurationInterface
     * {@inheritdoc}
    public function getConfigTreeBuilder()
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('AppBundle');


        return $treeBuilder;

    private function addPimcoreResourcesSection(ArrayNodeDefinition $node)

Routes Example File

  pattern: "/(\\w+)\\/yeah-route/"
  reverse: "/%_locale/yeah\-route"
  module: AppBundle
  controller: "@app.frontend.controller.controller"
  action: doSomething
  variables: _locale
  priority: 2