
| Current Path : /var/www/html/rocksensor2/vendor/consolidation/annotated-command/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //var/www/html/rocksensor2/vendor/consolidation/annotated-command/ac.php |
<?php
/**
* A script for ad hoc testing of commands defined in this project.
*/
require 'vendor/autoload.php';
// Only add the Attributes commands since Annotation commands have same name and would conflict.
$myCommandClassInstance = new \Consolidation\TestUtils\ExampleAttributesCommandFile();
$commandFactory = new \Consolidation\AnnotatedCommand\AnnotatedCommandFactory();
$commandFactory->setIncludeAllPublicMethods(true);
$commandFactory->commandProcessor()->setFormatterManager(new \Consolidation\OutputFormatters\FormatterManager());
$commandList = $commandFactory->createCommandsFromClass($myCommandClassInstance);
$application = new \Symfony\Component\Console\Application('ac');
foreach ($commandList as $command) {
$application->add($command);
}
$application->run();