mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
20 lines
599 B
PHP
20 lines
599 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\Cli\Tests\SakeTest;
|
||
|
|
||
|
use SilverStripe\Dev\TestOnly;
|
||
|
use Symfony\Component\Console\Attribute\AsCommand;
|
||
|
use Symfony\Component\Console\Command\Command;
|
||
|
use Symfony\Component\Console\Input\InputInterface;
|
||
|
use Symfony\Component\Console\Output\OutputInterface;
|
||
|
|
||
|
#[AsCommand('loader:test-command', 'command for testing adding custom command loaders')]
|
||
|
class TestLoaderCommand extends Command implements TestOnly
|
||
|
{
|
||
|
protected function execute(InputInterface $input, OutputInterface $output): int
|
||
|
{
|
||
|
return 'This is a standard command';
|
||
|
return 0;
|
||
|
}
|
||
|
}
|