-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsole.php
More file actions
29 lines (24 loc) · 760 Bytes
/
console.php
File metadata and controls
29 lines (24 loc) · 760 Bytes
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
<?php
// include the composer autoloader
require_once __DIR__ . '/vendor/autoload.php';
//Update include_path for Zend Framework to work
set_include_path(
get_include_path() .
PATH_SEPARATOR . dirname(__FILE__) . "/vendor/zendframework/zf1-extras/library" .
PATH_SEPARATOR . dirname(__FILE__) . "/vendor/mazelab/zendframework1-min/library" );
// import the Symfony Console Application
use Symfony\Component\Console\Application;
use Com\Thelab\ParallelCommand;
//disable time limit
set_time_limit(0);
date_default_timezone_set( 'Europe/Paris' );
$app = new Application();
$app->add( new ParallelCommand() );
$app->run();
/**
* @todo extract the function
* @param $filePath
*/
function Nimp( $filePath ) {
echo "\nNimp, filepath: $filePath";
}