Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
simplethings_entityaudit.reader dependency is mandatory or is breaking Admin with SonataPageBundle #266
When used with SonataAdmin and SonataPageBundle, the block creation page is broken when it tries to list all available block types. The sonata.admin_doctrine_orm.block.audit block service defined in audit.xml allows an invalid dependency on simplethings_entityaudit.reader service if the optional EntityAuditBundle is missing. But the constructor of the service class Sonata\DoctrineORMAdminBundle\Block\AuditBlockService does not allow a null value as 3rd parameter and throws an exception :
Catchable Fatal Error: Argument 3 passed to Sonata\DoctrineORMAdminBundle\Block\AuditBlockService::__construct() must be an instance of SimpleThings\EntityAudit\AuditReader, null given, called in /data/usr/local/apps/digiposte-php/current/php/cache/backend/dev/backendDevDebugProjectContainer.php on line 2967 and defined in /data/usr/local/apps/digiposte-php/current/php/vendor/sonata-project/doctrine-orm-admin-bundle/Sonata/DoctrineORMAdminBundle/Block/AuditBlockService.php line 40