Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Symfony/Bundle/Command/DebugResourceCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
use Symfony\Component\VarDumper\Cloner\ClonerInterface;
use Symfony\Component\VarDumper\Dumper\DataDumperInterface;

#[AsCommand(name: 'debug:api-resource')]
#[AsCommand(
name: 'debug:api-resource',
description: 'Debug API Platform resources'
)]
final class DebugResourceCommand extends Command
{
/**
Expand All @@ -41,7 +44,6 @@ public function __construct(private readonly ResourceMetadataCollectionFactoryIn
protected function configure(): void
{
$this
->setDescription('Debug API Platform resources')
->addArgument('class', InputArgument::REQUIRED, 'The class you want to debug');
}

Expand Down
6 changes: 4 additions & 2 deletions src/Symfony/Bundle/Command/GraphQlExportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
*
* @author Alan Poulain <contact@alanpoulain.eu>
*/
#[AsCommand(name: 'api:graphql:export')]
#[AsCommand(
name: 'api:graphql:export',
description: 'Export the GraphQL schema in Schema Definition Language (SDL)'
)]
class GraphQlExportCommand extends Command
{
public function __construct(private readonly SchemaBuilderInterface $schemaBuilder)
Expand All @@ -41,7 +44,6 @@ public function __construct(private readonly SchemaBuilderInterface $schemaBuild
protected function configure(): void
{
$this
->setDescription('Export the GraphQL schema in Schema Definition Language (SDL)')
->addOption('comment-descriptions', null, InputOption::VALUE_NONE, 'Use preceding comments as the description (deprecated: graphql-php < 15)')
->addOption('sort-types', null, InputOption::VALUE_NONE, 'Order types alphabetically')
->addOption('output', 'o', InputOption::VALUE_REQUIRED, 'Write output to file');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@

#[Get(
uriTemplate: '/item_uri_template_recipes/{id}{._format}',
shortName: 'ItemRecipe',
uriVariables: ['id'],
provider: [self::class, 'provide'],
openapi: false
)]
#[Get(
uriTemplate: '/item_uri_template_recipes_state_option/{id}{._format}',
shortName: 'ItemRecipe',
uriVariables: ['id'],
openapi: false,
stateOptions: new Options(entityClass: EntityRecipe::class)
Expand Down
Loading