File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 5
5
namespace ACSEO \TypesenseBundle \Command ;
6
6
7
7
use ACSEO \TypesenseBundle \Manager \CollectionManager ;
8
+ use Symfony \Component \Console \Attribute \AsCommand ;
8
9
use Symfony \Component \Console \Command \Command ;
9
10
use Symfony \Component \Console \Input \InputInterface ;
10
11
use Symfony \Component \Console \Output \OutputInterface ;
11
12
13
+ #[AsCommand(
14
+ name: 'typesense:create ' ,
15
+ )]
12
16
class CreateCommand extends Command
13
17
{
14
- protected static $ defaultName = 'typesense:create ' ;
15
18
private $ collectionManager ;
16
19
17
20
public function __construct (CollectionManager $ collectionManager )
Original file line number Diff line number Diff line change 8
8
use ACSEO \TypesenseBundle \Manager \DocumentManager ;
9
9
use ACSEO \TypesenseBundle \Transformer \DoctrineToTypesenseTransformer ;
10
10
use Doctrine \ORM \EntityManagerInterface ;
11
+ use Symfony \Component \Console \Attribute \AsCommand ;
11
12
use Symfony \Component \Console \Command \Command ;
12
13
use Symfony \Component \Console \Input \InputInterface ;
13
14
use Symfony \Component \Console \Input \InputOption ;
14
15
use Symfony \Component \Console \Output \OutputInterface ;
15
16
use Symfony \Component \Console \Style \SymfonyStyle ;
16
17
18
+ #[AsCommand(
19
+ name: 'typesense:import ' ,
20
+ )]
17
21
class ImportCommand extends Command
18
22
{
19
- protected static $ defaultName = 'typesense:import ' ;
20
-
21
23
private $ em ;
22
24
private $ collectionManager ;
23
25
private $ documentManager ;
You can’t perform that action at this time.
0 commit comments