Skip to content

Commit 514b593

Browse files
committed
v3.1.0 -- Use new symfony/php attributes instead of annotations.
1 parent 24a5415 commit 514b593

15 files changed

Lines changed: 37 additions & 60 deletions

CHANGELOG-3.x.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
This changelog references the relevant changes done in 3.x versions.
33

44

5+
## v3.1.0
6+
* Require symfony 6.2.x
7+
* Use new symfony/php attributes instead of annotations.
8+
9+
510
## v3.0.0
611
__BREAKING CHANGES__
712

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"php": ">=8.1",
99
"gdbots/pbjx": "^4.0",
1010
"gdbots/uri-template": "^2.0",
11-
"symfony/console": "^5.4|^6.0",
12-
"symfony/framework-bundle": "^5.4|^6.0",
13-
"twig/twig": "^3.3"
11+
"symfony/console": "^6.2",
12+
"symfony/framework-bundle": "^6.2",
13+
"twig/twig": "^3.4"
1414
},
1515
"require-dev": {
1616
"phpunit/phpunit": "^9.5",

src/Command/CreateEventSearchStorageCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
use Symfony\Component\Console\Style\SymfonyStyle;
1111
use Symfony\Component\DependencyInjection\ContainerInterface;
1212

13+
#[AsCommand(name: 'pbjx:create-event-search-storage')]
1314
final class CreateEventSearchStorageCommand extends Command
1415
{
1516
use PbjxAwareCommandTrait;
1617

17-
protected static $defaultName = 'pbjx:create-event-search-storage';
18-
19-
public function __construct(ContainerInterface $container)
18+
public function __construct(protected ContainerInterface $container)
2019
{
21-
$this->container = $container;
2220
parent::__construct();
2321
}
2422

src/Command/CreateEventStoreStorageCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
use Symfony\Component\Console\Style\SymfonyStyle;
1111
use Symfony\Component\DependencyInjection\ContainerInterface;
1212

13+
#[AsCommand(name: 'pbjx:create-event-store-storage')]
1314
final class CreateEventStoreStorageCommand extends Command
1415
{
1516
use PbjxAwareCommandTrait;
1617

17-
protected static $defaultName = 'pbjx:create-event-store-storage';
18-
19-
public function __construct(ContainerInterface $container)
18+
public function __construct(protected ContainerInterface $container)
2019
{
21-
$this->container = $container;
2220
parent::__construct();
2321
}
2422

src/Command/CreateSchedulerStorageCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
use Symfony\Component\Console\Style\SymfonyStyle;
1111
use Symfony\Component\DependencyInjection\ContainerInterface;
1212

13+
#[AsCommand(name: 'pbjx:create-scheduler-storage')]
1314
final class CreateSchedulerStorageCommand extends Command
1415
{
1516
use PbjxAwareCommandTrait;
1617

17-
protected static $defaultName = 'pbjx:create-scheduler-storage';
18-
19-
public function __construct(ContainerInterface $container)
18+
public function __construct(protected ContainerInterface $container)
2019
{
21-
$this->container = $container;
2220
parent::__construct();
2321
}
2422

src/Command/DescribeEventSearchStorageCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
use Symfony\Component\Console\Style\SymfonyStyle;
1111
use Symfony\Component\DependencyInjection\ContainerInterface;
1212

13+
#[AsCommand(name: 'pbjx:describe-event-search-storage')]
1314
final class DescribeEventSearchStorageCommand extends Command
1415
{
1516
use PbjxAwareCommandTrait;
1617

17-
protected static $defaultName = 'pbjx:describe-event-search-storage';
18-
19-
public function __construct(ContainerInterface $container)
18+
public function __construct(protected ContainerInterface $container)
2019
{
21-
$this->container = $container;
2220
parent::__construct();
2321
}
2422

src/Command/DescribeEventStoreStorageCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
use Symfony\Component\Console\Style\SymfonyStyle;
1111
use Symfony\Component\DependencyInjection\ContainerInterface;
1212

13+
#[AsCommand(name: 'pbjx:describe-event-store-storage')]
1314
final class DescribeEventStoreStorageCommand extends Command
1415
{
1516
use PbjxAwareCommandTrait;
1617

17-
protected static $defaultName = 'pbjx:describe-event-store-storage';
18-
19-
public function __construct(ContainerInterface $container)
18+
public function __construct(protected ContainerInterface $container)
2019
{
21-
$this->container = $container;
2220
parent::__construct();
2321
}
2422

src/Command/DescribeSchedulerStorageCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
use Symfony\Component\Console\Style\SymfonyStyle;
1111
use Symfony\Component\DependencyInjection\ContainerInterface;
1212

13+
#[AsCommand(name: 'pbjx:describe-scheduler-storage')]
1314
final class DescribeSchedulerStorageCommand extends Command
1415
{
1516
use PbjxAwareCommandTrait;
1617

17-
protected static $defaultName = 'pbjx:describe-scheduler-storage';
18-
19-
public function __construct(ContainerInterface $container)
18+
public function __construct(protected ContainerInterface $container)
2019
{
21-
$this->container = $container;
2220
parent::__construct();
2321
}
2422

src/Command/ExportEventsCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
use Symfony\Component\Console\Output\OutputInterface;
1616
use Symfony\Component\DependencyInjection\ContainerInterface;
1717

18+
#[AsCommand(name: 'pbjx:export-events')]
1819
final class ExportEventsCommand extends Command
1920
{
2021
use PbjxAwareCommandTrait;
2122

22-
protected static $defaultName = 'pbjx:export-events';
23-
24-
public function __construct(ContainerInterface $container)
23+
public function __construct(protected ContainerInterface $container)
2524
{
26-
$this->container = $container;
2725
parent::__construct();
2826
}
2927

src/Command/PbjxBatchCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
use Symfony\Component\DependencyInjection\ContainerInterface;
1616
use Symfony\Component\HttpFoundation\Request;
1717

18+
#[AsCommand(name: 'pbjx:batch')]
1819
final class PbjxBatchCommand extends Command
1920
{
2021
use PbjxAwareCommandTrait;
2122

22-
protected static $defaultName = 'pbjx:batch';
23-
24-
public function __construct(ContainerInterface $container)
23+
public function __construct(protected ContainerInterface $container)
2524
{
26-
$this->container = $container;
2725
parent::__construct();
2826
}
2927

0 commit comments

Comments
 (0)