You are browsing upcoming documentation for version 6.1 of OroCommerce, scheduled for release in 2025. Read the documentation for version 6.0 (the latest LTS version) 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: Acme\Bundle\DemoBundle\AcmeDemoBundle, 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.