PHP Class N98\Magento\Application\Console\EventSubscriber\CheckRootUser

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Mostra file Open project: netz98/n98-magerun

Public Methods

Method Description
checkRunningAsRootUser ( Event $event ) : void Display a warning if a running n98-magerun as root user
getSubscribedEvents ( ) : array Returns an array of event names this subscriber wants to listen to.

Protected Methods

Method Description
_isSkipRootCheck ( Symfony\Component\Console\Input\InputInterface $input ) : boolean

Method Details

_isSkipRootCheck() protected method

protected _isSkipRootCheck ( Symfony\Component\Console\Input\InputInterface $input ) : boolean
$input Symfony\Component\Console\Input\InputInterface
return boolean

checkRunningAsRootUser() public method

Display a warning if a running n98-magerun as root user
public checkRunningAsRootUser ( Event $event ) : void
$event N98\Magento\Application\Console\Event
return void

getSubscribedEvents() public static method

Returns an array of event names this subscriber wants to listen to.
public static getSubscribedEvents ( ) : array
return array The event names to listen to