Ocramius / OcraServiceManager

ServiceManager additional features implemented via modules
MIT License
47 stars 18 forks source link

Route name conflict #34

Open snapshotpl opened 9 years ago

snapshotpl commented 9 years ago

If I have installed OcraServiceManager and DoctrineORMModule, and I want to see dependency graph I will see always graph for Doctrine. It's happen because route name is the same:

    'router' => array(
        'routes' => array(
            'doctrine_orm_module_yuml' => array(
                'type' => 'Zend\\Mvc\\Router\\Http\\Literal',
                'options' => array(
                    'route' => '/ocra_service_manager_yuml',
                    'defaults' => array(
                        'controller' => 'DoctrineORMModule\\Yuml\\YumlController',
                        'action'     => 'index',
                    ),
                ),
            ),
        ),
    ),
    'router' => array(
        'routes' => array(
            'ocra_service_manager_yuml' => array(
                'type' => 'Zend\\Mvc\\Router\\Http\\Literal',
                'options' => array(
                    'route'    => '/ocra_service_manager_yuml',
                    'defaults' => array(
                        'controller' => 'OcraServiceManager\\Controller\\YumlController',
                        'action'     => 'index',
                    ),
                ),
            ),
        ),
    ),
Ocramius commented 9 years ago

Urgh, guess doctrine-orm-module needs to be updated then :-(