public function register()
{
$dic = $this->app->getContainer();
$dic->share('Autarky\\Events\\EventDispatcher');
$dic->alias('Autarky\\Events\\EventDispatcher', 'Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
$dic->resolvingAny(function ($obj, ContainerInterface $dic) {
if ($obj instanceof EventDispatcherAwareInterface) {
$obj->setEventDispatcher($dic->resolve('Autarky\\Events\\EventDispatcher'));
}
});
}