PHP Class Bolt\Composer\EventListener\BufferIOListener

Author: Gawain Lynch ([email protected])
Inheritance: implements Composer\EventDispatcher\EventSubscriberInterface
显示文件 Open project: bolt/bolt

Protected Properties

Property Type Description
$logger Psr\Log\LoggerInterface
$manager Bolt\Composer\PackageManager

Public Methods

Method Description
__construct ( PackageManager $manager, Psr\Log\LoggerInterface $logger ) Constructor function.
getSubscribedEvents ( ) : array Return the events to subscribe to.
onPostPackage ( Composer\Installer\PackageEvent $event ) Composer post-package action events.
onPrePackage ( Composer\Installer\PackageEvent $event ) Composer pre-package action events.

Method Details

__construct() public method

Constructor function.
public __construct ( PackageManager $manager, Psr\Log\LoggerInterface $logger )
$manager Bolt\Composer\PackageManager
$logger Psr\Log\LoggerInterface

getSubscribedEvents() public static method

Return the events to subscribe to.
public static getSubscribedEvents ( ) : array
return array

onPostPackage() public method

Composer post-package action events.
public onPostPackage ( Composer\Installer\PackageEvent $event )
$event Composer\Installer\PackageEvent

onPrePackage() public method

Composer pre-package action events.
public onPrePackage ( Composer\Installer\PackageEvent $event )
$event Composer\Installer\PackageEvent

Property Details

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
return Psr\Log\LoggerInterface

$manager protected_oe property

protected PackageManager,Bolt\Composer $manager
return Bolt\Composer\PackageManager