TYPO3  7.6
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Plugin Class Reference
Inheritance diagram for Plugin:

Public Member Functions

 activate (Composer $composer, IOInterface $io)
 
 onPostAutoloadDump (\Composer\Script\Event $event)
 

Static Public Member Functions

static getSubscribedEvents ()
 

Protected Attributes

 $composer
 
 $io
 

Detailed Description

Class Plugin

Definition at line 21 of file class-alias-loader/src/Plugin.php.

Member Function Documentation

activate ( Composer  $composer,
IOInterface  $io 
)

Apply plugin modifications to composer

Parameters
Composer$composer
IOInterface$io

Definition at line 39 of file class-alias-loader/src/Plugin.php.

References Plugin\$composer, and Plugin\$io.

static getSubscribedEvents ( )
static

Returns an array of event names this subscriber wants to listen to.

The array keys are event names and the value can be:

  • The method name to call (priority defaults to 0)
  • An array composed of the method name to call and the priority
  • An array of arrays composed of the method names to call and respective priorities, or 0 if unset

For instance:

  • array('eventName' => 'methodName')
  • array('eventName' => array('methodName', $priority))
  • array('eventName' => array(array('methodName1', $priority), array('methodName2'))
Returns
array The event names to listen to

Definition at line 63 of file class-alias-loader/src/Plugin.php.

onPostAutoloadDump ( \Composer\Script\Event  $event)

Plugin callback for this script event, which calls the previously implemented static method

Parameters
\Composer\Script\Event$event
Returns
bool

Definition at line 76 of file class-alias-loader/src/Plugin.php.

Member Data Documentation

$composer
protected

Definition at line 26 of file class-alias-loader/src/Plugin.php.

Referenced by Plugin\activate().

$io
protected

Definition at line 31 of file class-alias-loader/src/Plugin.php.

Referenced by Plugin\activate().