Class

eZ\Bundle\EzPublishCoreBundle\EventListener\ConsoleCommandListener

class ConsoleCommandListener implements EventSubscriberInterface, SiteAccessAware

ConsoleCommandListener event listener.

Methods

__construct($defaultSiteAccessName, array $siteAccessList, EventDispatcherInterface $eventDispatcher)

ConsoleCommandListener constructor.

static  getSubscribedEvents()

onConsoleCommand(ConsoleCommandEvent $event)

setSiteAccess(SiteAccess $siteAccess = null)

Details

at line 49
public __construct($defaultSiteAccessName, array $siteAccessList, EventDispatcherInterface $eventDispatcher)

ConsoleCommandListener constructor.

Parameters

$defaultSiteAccessName
array $siteAccessList
EventDispatcherInterface $eventDispatcher

at line 56
static public getSubscribedEvents()

at line 65
public onConsoleCommand(ConsoleCommandEvent $event)

Parameters

ConsoleCommandEvent $event

at line 77
public setSiteAccess(SiteAccess $siteAccess = null)

Parameters

SiteAccess $siteAccess