Skip to content

Commit

Permalink
WIP: Migrate to Brevo SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPixxel committed Nov 17, 2023
1 parent 34b6dcc commit 45a4c2d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/Admin/TemplatesAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace BadPixxel\BrevoBridge\Admin;

use BadPixxel\BrevoBridge\Controller\Templates\Preview;
use BadPixxel\BrevoBridge\Controller\Templates\Send;
use BadPixxel\BrevoBridge\Controller\Templates\View;
use Sonata\AdminBundle\Admin\AbstractAdmin as Admin;
use Sonata\AdminBundle\Route\RouteCollectionInterface;

Expand Down Expand Up @@ -56,8 +59,15 @@ protected function configureRoutes(RouteCollectionInterface $collection): void
$collection->remove('export');
$collection->remove('delete');

$collection->add('view', '{emailCode}/view');
$collection->add('view', '{emailCode}/view', array(
"_controller" => View::class
));
$collection->add('preview', '{emailCode}/preview', array(
"_controller" => Preview::class
));
$collection->add('update', '{emailCode}/update');
$collection->add('send', '{emailCode}/send');
$collection->add('send', '{emailCode}/send', array(
"_controller" => Send::class
));
}
}

0 comments on commit 45a4c2d

Please sign in to comment.