res/examples/multi-command-multi-processor/src/ScriptHandler.php 1 location
|
@@ 7-16 (lines=10) @@
|
4 |
|
|
5 |
|
use Composer\Script\Event; |
6 |
|
|
7 |
|
class ScriptHandler |
8 |
|
{ |
9 |
|
public static function helloExample(Event $event) |
10 |
|
{ |
11 |
|
$configuration = new Configuration($event->getComposer()->getPackage()->getExtra()); |
12 |
|
$processor = new Processor($event->getIO(), $event->getComposer()); |
13 |
|
|
14 |
|
$processor->process($configuration); |
15 |
|
} |
16 |
|
} |
17 |
|
|
res/examples/multi-command-one-processor/src/ScriptHandler.php 1 location
|
@@ 7-16 (lines=10) @@
|
4 |
|
|
5 |
|
use Composer\Script\Event; |
6 |
|
|
7 |
|
class ScriptHandler |
8 |
|
{ |
9 |
|
public static function helloExample(Event $event) |
10 |
|
{ |
11 |
|
$configuration = new Configuration($event->getComposer()->getPackage()->getExtra()); |
12 |
|
$processor = new Processor($event->getIO(), $event->getComposer()); |
13 |
|
|
14 |
|
$processor->process($configuration, $event); |
15 |
|
} |
16 |
|
} |
17 |
|
|
res/examples/single-command/src/ScriptHandler.php 1 location
|
@@ 7-16 (lines=10) @@
|
4 |
|
|
5 |
|
use Composer\Script\Event; |
6 |
|
|
7 |
|
class ScriptHandler |
8 |
|
{ |
9 |
|
public static function helloExample(Event $event) |
10 |
|
{ |
11 |
|
$configuration = new Configuration($event->getComposer()->getPackage()->getExtra()); |
12 |
|
$processor = new Processor($event->getIO(), $event->getComposer()); |
13 |
|
|
14 |
|
$processor->process($configuration); |
15 |
|
} |
16 |
|
} |
17 |
|
|