Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
AUDUL committed Nov 14, 2023
1 parent 7188c86 commit e231573
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bundle/Command/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

#[AsCommand('ibexamailing:install')]
#[AsCommand(name: 'ibexamailing:install', description: 'Add IbexaMailing tables to database')]
class InstallCommand extends Command
{

Expand Down
2 changes: 1 addition & 1 deletion bundle/Command/MigrateNovaEzMailingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

#[AsCommand('ibexamailing:migrate:novaezmailing')]
#[AsCommand(name: 'ibexamailing:migrate:novaezmailing', description: 'Migrate data from old structure')]
class MigrateNovaEzMailingCommand extends Command
{
private const TABLES = [
Expand Down
5 changes: 5 additions & 0 deletions bundle/Listener/TopMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public function onMainMenuConfigure(ConfigureMenuEvent $event): void
[
'route' => 'ibexamailing_dashboard_index',
'label' => 'Ibexa Mailing',
'extras' => [
'routes' => [
'ibexamailing' => '_ibexamailing_bundle',
],
],
]
);
}
Expand Down
12 changes: 1 addition & 11 deletions bundle/Resources/doc/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,10 @@ ibexamailing:
mailing_mailer: "main"
```

Add DoctrineMigration Folder in `doctrine_migrations.yaml`

```yaml
doctrine_migrations:
migrations_paths:
...
'IbexaMailingBundle': '%kernel.project_dir%/vendor/code-rhapsodie/ibexamailingbundle/migrations'
```

### Add the tables

```bash
bin/console doctrine:migration:migrate IbexaMailingBundle\Version20231113102632
bin/console doctrine:migration:migrate IbexaMailingBundle\Version20231113113924
bin/console ibexamailing:install
```

### Specify the Default Mailing List Id
Expand Down

0 comments on commit e231573

Please sign in to comment.