Файл: concrete5.7.5.6/concrete/src/Support/Facade/Events.php
Строк: 36
<?php
namespace ConcreteCoreSupportFacade;
class Events extends Facade {
public static function getFacadeAccessor() {return 'director';}
public static function fire($eventName, $event = null) {
$app = Facade::getFacadeApplication();
$args = func_get_args();
// legacy support
if (!($event instanceof SymfonyComponentEventDispatcherEvent)) {
array_shift($args);
$event = new SymfonyComponentEventDispatcherGenericEvent();
$event->setArgument('arguments', $args);
}
$app['director']->dispatch($eventName, $event);
}
}