Last active
January 5, 2017 14:05
-
-
Save tommy-muehle/b18d3920679fe86a980c7f6672ecd633 to your computer and use it in GitHub Desktop.
Wrapper to simulate a "composer run-script post-update-cmd" to start tooly-composer-script's script handler. The standard way "blackfire run composer run-script post-install-cmd" only returns a big passthru. (https://blackfire.io/profiles/4013cbc8-af9d-49ba-83ac-becc921a322b/graph?settings%5Bdimension%5D=wt&settings%5Bdisplay%5D=landscape&settin…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/../vendor/autoload.php'; | |
use Composer\Script\Event; | |
use Composer\IO\ConsoleIO; | |
use Symfony\Component\Console\Input\ArrayInput; | |
use Symfony\Component\Console\Output\ConsoleOutput; | |
use Symfony\Component\Console\Helper\HelperSet; | |
use Tooly\ScriptHandler; | |
$composerIO = new ConsoleIO( | |
new ArrayInput([]), | |
new ConsoleOutput(), | |
new HelperSet() | |
); | |
$composer = \Composer\Factory::create($composerIO); | |
$event = new Event('test', $composer, $composerIO, true); | |
ScriptHandler::installPharTools($event); |
Author
tommy-muehle
commented
Jan 2, 2017
The solution is: (add the missing php)
blackfire run php bin/performance-tester.php
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment