public static function run(Event $event)
    {
        $io = $event->getIO();
        $composer = $event->getComposer();

        $instance = new static();

        $instance->io = $io;
        $instance->composer = $composer;
        $instance->init();
        $instance->onDependenciesChangedEvent();
    }
public static function run(Event $event)
    {
        $io = $event->getIO();
        $composer = $event->getComposer();

        $instance = new static();

        $instance->io = $io;
        $instance->composer = $composer;
        $instance->init();
        $instance->onDependenciesChangedEvent();
    }
public static function run ( Event $ event ) { $ io = $ event -> getIO ( ) ; $ composer = $ event -> getComposer ( ) ; $ instance = new static ( ) ; $ instance -> io = $ io ; $ instance -> composer = $ composer ; $ instance -> init ( ) ; $ instance -> onDependenciesChangedEvent ( ) ; }
Triggers the plugin's main functionality.

Makes it possible to run the plugin as a custom command.

@param Event $event

@throws \InvalidArgumentException
@throws \RuntimeException
@throws LogicException
@throws ProcessFailedException
@throws RuntimeException
Triggers the plugin s main functionality .