- var_dump: documentation ( source)
<?php
#[AsCommand(description: 'description of the command', name: 'app:'.self::command.':process')]
final class MyCommand
{
}
$r = new ReflectionClass('MyCommand');
foreach($r->getAttributes() as $attribute) {
foreach($attribute->getArguments() as $arg) {
var_dump($arg);
}
}