Skip to content

Commit fbc0760

Browse files
committed
chore: changelog & doctrine annotation issue
1 parent 0a8815b commit fbc0760

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Symfony: missing Elasticsearch DocumentMetadataFactoryInterface alias definition (#4962)
1818
* Chore: drop dependency on fig/link-util (#4945)
1919
* Metadata: resource name collection missing deprecation (#4953)
20+
* Doctrine: ability to use ORM and ODM (#5032)
2021

2122
## 2.7.0
2223

src/Core/Bridge/Symfony/Bundle/Command/UpgradeApiResourceCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function configure()
7373
->setDescription('The "api:upgrade-resource" command upgrades your API Platform metadata from versions below 2.6 to the new metadata from versions above 2.7.
7474
Once you executed this script, make sure that the "metadata_backward_compatibility_layer" flag is set to "false" in the API Platform configuration.
7575
This will remove "ApiPlatform\Core\Annotation\ApiResource" annotation/attribute and use the "ApiPlatform\Metadata\ApiResource" attribute instead.')
76-
->addOption('dry-run', '-d', InputOption::VALUE_NONE, 'Dry mode outputs a diff instead of writing files.')
76+
->addOption('dry-run', '-d', InputOption::VALUE_OPTIONAL, 'Dry mode outputs a diff instead of writing files.', true)
7777
->addOption('silent', '-s', InputOption::VALUE_NONE, 'Silent output.')
7878
->addOption('force', '-f', InputOption::VALUE_NONE, 'Writes the files in place and skips PHP version check.');
7979
}

src/Metadata/ApiResource.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
/**
1919
* Resource metadata attribute.
2020
*
21+
* @Annotation
22+
*
2123
* @author Antoine Bluchet <[email protected]>
2224
*/
2325
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]

0 commit comments

Comments
 (0)