You are browsing the documentation for version 4.2 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.

See our Release Process documentation for more information on the currently supported and upcoming releases.


OroDistributionBundle enables application bundles registration based on their YAML configuration files without changing the application files. It also provides CLI to manage Oro packages in the applications.

Use the Bundle

Add Resources/config/oro/bundles.yml file to every bundle you want to be autoregistered:

    - { name: VendorName\Bundle\VendorBundle\VendorAnyBundle, priority: 50 }
    - { name: My\Bundle\MyBundle\MyCustomBundle, priority: 50 }
#   - ...

Your bundle (and “VendorAnyBundle”) will now be automatically registered in AppKernel.php.



    - { name: VendorName\Bundle\VendorBundle\VendorAnyBundle }

Autoload Routes

Add the Resources/config/oro/routing.yml file to every bundle for which you want to autoload its routes.

Add the following rule to the application’s routing.yml:

    path: '%web_backend_prefix%/'
        _controller: Oro\Bundle\DashboardBundle\Controller\DashboardController::viewAction

oro_auto_routing: # to load bundles
    resource: .
    type:     oro_auto

oro_expose:       # to load exposed assets
    resource: .
    type:     oro_expose

All routes from your bundles will be imported automatically.