forked from danielmewes/php-rql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperidot.php
37 lines (32 loc) · 1.14 KB
/
peridot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
use App\Peridot\LaravelPlugin;
use App\Peridot\NotifyPlugin;
use App\Peridot\FileFixturePlugin;
use cloak\peridot\CloakPlugin;
use Eloquent\Peridot\Phony\PeridotPhony;
use Evenement\EventEmitterInterface;
use Peridot\Concurrency\ConcurrencyPlugin;
use Peridot\Console\Environment;
use Peridot\Plugin\Prophecy\ProphecyPlugin;
use Peridot\Plugin\Watcher\WatcherPlugin;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
/**
* Configure peridot.
*
* @param EventEmitterInterface $emitter
*/
return function (EventEmitterInterface $emitter) {
// Mocking objects
//new ProphecyPlugin($emitter);
// Watch for code change
//new WatcherPlugin($emitter);
$emitter->on('peridot.start', function (Environment $environment) {
// Set default path
$environment->getDefinition()->getArgument('path')->setDefault('specs');
// Add code coverage option
$environment->getDefinition()->option('coverage', 'o', InputOption::VALUE_NONE,
'Run cloack code coverage report (using cloack.toml file)');
});
};