File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 55namespace ACSEO \TypesenseBundle \Command ;
66
77use ACSEO \TypesenseBundle \Manager \CollectionManager ;
8+ use Symfony \Component \Console \Attribute \AsCommand ;
89use Symfony \Component \Console \Command \Command ;
910use Symfony \Component \Console \Input \InputInterface ;
1011use Symfony \Component \Console \Output \OutputInterface ;
1112
13+ #[AsCommand(
14+ name: 'typesense:create ' ,
15+ )]
1216class CreateCommand extends Command
1317{
14- protected static $ defaultName = 'typesense:create ' ;
1518 private $ collectionManager ;
1619
1720 public function __construct (CollectionManager $ collectionManager )
Original file line number Diff line number Diff line change 88use ACSEO \TypesenseBundle \Manager \DocumentManager ;
99use ACSEO \TypesenseBundle \Transformer \DoctrineToTypesenseTransformer ;
1010use Doctrine \ORM \EntityManagerInterface ;
11+ use Symfony \Component \Console \Attribute \AsCommand ;
1112use Symfony \Component \Console \Command \Command ;
1213use Symfony \Component \Console \Input \InputInterface ;
1314use Symfony \Component \Console \Input \InputOption ;
1415use Symfony \Component \Console \Output \OutputInterface ;
1516use Symfony \Component \Console \Style \SymfonyStyle ;
1617
18+ #[AsCommand(
19+ name: 'typesense:import ' ,
20+ )]
1721class ImportCommand extends Command
1822{
19- protected static $ defaultName = 'typesense:import ' ;
20-
2123 private $ em ;
2224 private $ collectionManager ;
2325 private $ documentManager ;
You can’t perform that action at this time.
0 commit comments