[CORE][EVENTS] Bring existing Events and Boostrapper back

- Adapt the existing event system to rely on Symfony's event dispatcher
This commit is contained in:
Hugo Sales
2020-03-11 20:29:08 +00:00
committed by Hugo Sales
parent b396f1227a
commit feaee1b238
12 changed files with 507 additions and 273 deletions

View File

@@ -8,6 +8,8 @@ use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
use Symfony\Component\Routing\RouteCollectionBuilder;
use function dirname;
use const PHP_VERSION_ID;
class Kernel extends BaseKernel
{
@@ -27,13 +29,13 @@ class Kernel extends BaseKernel
public function getProjectDir(): string
{
return \dirname(__DIR__);
return dirname(__DIR__);
}
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
{
$container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));
$container->setParameter('container.dumper.inline_class_loader', \PHP_VERSION_ID < 70400 || $this->debug);
$container->setParameter('container.dumper.inline_class_loader', PHP_VERSION_ID < 70400 || $this->debug);
$container->setParameter('container.dumper.inline_factories', true);
$confDir = $this->getProjectDir().'/config';