getCommands() public static method

public static getCommands ( )
Example #1
0
#!/usr/bin/env php
<?php 
$i = 0;
do {
    $autoloader = __DIR__ . str_repeat('/..', $i) . '/vendor/autoload.php';
    $i++;
} while ($i < 6 && !is_file($autoloader));
require_once $autoloader;
use Symfony\Component\Console\Application;
$app = new Application('AwsInspector', '@package_version@');
foreach (\AwsInspector\CommandRegistry::getCommands() as $command) {
    $app->add($command);
}
$app->run();