
| Current Path : /var/www/html/sirius-pallets/vendor/drush/drush/src/Attributes/ |
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/sirius-pallets/vendor/drush/drush/src/Attributes/Obsolete.php |
<?php
declare(strict_types=1);
namespace Drush\Attributes;
use Attribute;
use Consolidation\AnnotatedCommand\Parser\CommandInfo;
/**
* Mark commands as obsolete. These commands are omitted from help list and when
* user tries to run one, the command's description is shown. Example usage at https://github.com/drush-ops/drush/blob/13.x/src/Commands/LegacyCommands.php
*/
#[Attribute(Attribute::TARGET_METHOD)]
class Obsolete extends NoArgumentsBase
{
const NAME = 'obsolete';
public static function handle(\ReflectionAttribute $attribute, CommandInfo $commandInfo)
{
parent::handle($attribute, $commandInfo);
$commandInfo->setHidden(true);
}
}