Skip to content

Commit

Permalink
Merge pull request #28 from Fabricio872/27-upgrade-to-symfony-7
Browse files Browse the repository at this point in the history
27 upgrade to symfony 7
  • Loading branch information
Fabricio872 authored Apr 9, 2024
2 parents 556836d + 9b3f13d commit 8f349fc
Show file tree
Hide file tree
Showing 14 changed files with 77 additions and 476 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/php-composer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Validate composer.json and composer.lock
run: composer validate --strict

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ RegisterBundle:
## Configure Entity

> note: In case of combining Annotations and Attributes of this bundle only Attributes will be used.
- Documentation for Annotation usage is [here](https://github.com/Fabricio872/RegisterCommandBundle/tree/main/docs/ANNOTATION_EXAMPLES.md)
- Documentation for Attributes (PHP 8) usage is [here](https://github.com/Fabricio872/RegisterCommandBundle/tree/main/docs/ATTRIBUTE_EXAMPLES.md)
- Documentation for Attributes usage is [here](https://github.com/Fabricio872/RegisterCommandBundle/tree/main/docs/ATTRIBUTE_EXAMPLES.md)

## Finally, you are ready to register some users.

Expand Down
22 changes: 10 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,21 @@
}
],
"require": {
"php": "^8.1",
"doctrine/annotations": "^1.13|^2.0",
"doctrine/orm": "^2.9",
"symfony/config": "^6.1",
"symfony/console": "^6.1",
"symfony/dependency-injection": "^6.1",
"symfony/dotenv": "^6.1",
"symfony/http-kernel": "^6.1",
"symfony/security-bundle": "^6.1",
"symfony/serializer": "^6.1",
"symfony/validator": "^6.1"
"php": "^8.2",
"doctrine/orm": "^3.0",
"symfony/config": "^7.0",
"symfony/console": "^7.0",
"symfony/dependency-injection": "^7.0",
"symfony/dotenv": "^7.0",
"symfony/http-kernel": "^7.0",
"symfony/security-bundle": "^7.0",
"symfony/serializer": "^7.0"
},
"require-dev": {
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan": "^1.9",
"rector/rector": "^0.15.16",
"symfony/phpunit-bridge": "^6.1",
"symfony/phpunit-bridge": "^7.0",
"symplify/easy-coding-standard": "^11.2.8"
},
"config": {
Expand Down
301 changes: 0 additions & 301 deletions docs/ANNOTATION_EXAMPLES.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/ATTRIBUTE_EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ To field to be asked from terminal you have to set "field" to one of those input
* @ORM\Column(type="string", length=180, unique=true)
*/
#[RegisterCommand(
field: "hiddenRepeated"
field: "hiddenRepeat"
)]
private $hiddenRepeatedValue;
// ...
Expand Down
6 changes: 0 additions & 6 deletions src/Annotations/RegisterCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
namespace Fabricio872\RegisterCommand\Annotations;

use Attribute;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;

/**
* @Annotation
* @NamedArgumentConstructor()
* @Target({"PROPERTY"})
*/
#[Attribute(Attribute::TARGET_PROPERTY)]
class RegisterCommand
{
Expand Down
Loading

0 comments on commit 8f349fc

Please sign in to comment.