kaliop-uk / ezmigrationbundle

This bundle makes it easy to handle eZPlatform / eZPublish5 content upgrades/migrations
GNU General Public License v2.0
53 stars 81 forks source link

[ezp-3] Fixed Bundle name #222

Closed damianz5 closed 5 years ago

damianz5 commented 5 years ago

Bundle name should follow naming convention https://symfony.com/doc/current/bundles/best_practices.html#bundle-name

The issue occurs when trying to install this bundle on sf4 using symfony flex,

https://github.com/symfony/flex/blob/master/src/SymfonyBundle.php#L89 https://github.com/symfony/flex/blob/master/src/SymfonyBundle.php#L103

code expects that the bundle file will follow namespace "Kaliop\eZMigrationBundle\" -> one of those:

0 => "Kaliop\eZMigrationBundle\eZMigrationBundle" 1 => "Kaliop\eZMigrationBundle\KaliopeZMigrationBundle"

related issues

!!                                                                                 
!!    Case mismatch between loaded and declared class names: "Kaliop\eZMigrationB  
!!    undle\DependencyInjection\eZMigrationExtension" vs "Kaliop\eZMigrationBundl  
!!    e\DependencyInjection\EzMigrationExtension".                                 
!!         

!!                                                                           
!!    Trying to register two bundles with the same name "EzMigrationBundle"  
!!