add new event and new tag
This commit is contained in:
@@ -33,6 +33,11 @@ namespace Thelia\Core\Event;
|
||||
final class TheliaEvents
|
||||
{
|
||||
|
||||
/**
|
||||
* sent at the beginning
|
||||
*/
|
||||
const BOOT = "thelia.boot";
|
||||
|
||||
/**
|
||||
* ACTION event
|
||||
*
|
||||
|
||||
@@ -39,6 +39,7 @@ use Symfony\Component\Yaml\Yaml;
|
||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
||||
|
||||
use Thelia\Core\Bundle;
|
||||
use Thelia\Core\Event\TheliaEvents;
|
||||
use Thelia\Log\Tlog;
|
||||
use Thelia\Config\DatabaseConfiguration;
|
||||
use Thelia\Config\DefinePropel;
|
||||
@@ -88,6 +89,16 @@ class Thelia extends Kernel
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* dispatch an event when application is boot
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
$this->getContainer()->get("event_dispatcher")->dispatch(TheliaEvents::BOOT);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Load some configuration
|
||||
|
||||
Reference in New Issue
Block a user