PHP Classes

File: bin/console

Recommend this page to a friend!
  Classes of Kacper Rowinski   async   bin/console   Download  
File: bin/console
Role: Example script
Content type: text/plain
Description: Example script
Class: async
Run code asynchronously using the PHP program
Author: By
Last change:
Date: 6 years ago
Size: 441 bytes
 

Contents

Class file image Download
<?php


namespace bin;

array_map(
    function (
$autoloadFile) {
        if (
is_file($autoloadFile)) {
            include
$autoloadFile;
        }
    },
    [
       
__DIR__ . '/../vendor/autoload.php',
       
__DIR__ . '/../../../../vendor/autoload.php'
   
]
);

use
Async\AsyncChildCommand;
use
Symfony\Component\Console\Application;

$application = new Application();
$application->add(new AsyncChildCommand());
$application->run();