Skip to content

Commit

Permalink
WIP: SF5 Compatibility, Drop FOS USER
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPixxel committed Sep 27, 2023
1 parent e0236fa commit 18bede3
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/Admin/Extensions/UserEmailsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Admin\Extensions;
namespace BadPixxel\BrevoBridge\Admin\Extensions;

use BadPixxel\SendinblueBridge\Interfaces\EmailsAwareInterface;
use BadPixxel\BrevoBridge\Interfaces\EmailsAwareInterface;
use Knp\Menu\ItemInterface as MenuItemInterface;
use Sonata\AdminBundle\Admin\AbstractAdminExtension;
use Sonata\AdminBundle\Admin\AdminInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Admin/Extensions/UserSmsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Admin\Extensions;
namespace BadPixxel\BrevoBridge\Admin\Extensions;

use BadPixxel\SendinblueBridge\Interfaces\SmsAwareInterface;
use BadPixxel\BrevoBridge\Interfaces\SmsAwareInterface;
use Knp\Menu\ItemInterface as MenuItemInterface;
use Sonata\AdminBundle\Admin\AbstractAdminExtension;
use Sonata\AdminBundle\Admin\AdminInterface;
Expand Down
6 changes: 3 additions & 3 deletions src/Admin/TemplatesAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Admin;
namespace BadPixxel\BrevoBridge\Admin;

use Sonata\AdminBundle\Admin\AbstractAdmin as Admin;
use Sonata\AdminBundle\Route\RouteCollectionInterface;
Expand All @@ -26,14 +26,14 @@ class TemplatesAdmin extends Admin
*
* @var string
*/
protected $baseRouteName = "admin_badpixxel_sendinblue_templates";
protected $baseRouteName = "admin_badpixxel_brevo_templates";

/**
* The base route pattern used to generate the routing information.
*
* @var string
*/
protected $baseRoutePattern = "sib/templates";
protected $baseRoutePattern = "brevo/templates";

/**
* Action list for the search result.
Expand Down
4 changes: 2 additions & 2 deletions src/Admin/UserEmailsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Admin;
namespace BadPixxel\BrevoBridge\Admin;

use BadPixxel\SendinblueBridge\Models\AbstractEmailAdmin;
use BadPixxel\BrevoBridge\Models\AbstractEmailAdmin;

/**
* Sonata Admin Class for Users Emails.
Expand Down
4 changes: 2 additions & 2 deletions src/Admin/UserSmsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Admin;
namespace BadPixxel\BrevoBridge\Admin;

use BadPixxel\SendinblueBridge\Models\AbstractSmsAdmin;
use BadPixxel\BrevoBridge\Models\AbstractSmsAdmin;

/**
* Sonata Admin Class for Users Sms.
Expand Down
8 changes: 4 additions & 4 deletions src/Command/CompileCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Command;
namespace BadPixxel\BrevoBridge\Command;

use BadPixxel\SendinblueBridge\Services\TemplateManager;
use BadPixxel\BrevoBridge\Services\TemplateManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -46,8 +46,8 @@ public function __construct(TemplateManager $tmplManager, string $name = null)
public function configure(): void
{
$this
->setName('sendinblue:email:compile')
->setDescription("[SendInBlue] Compile Emails Templates")
->setName('brevo:email:compile')
->setDescription("[Brevo] Compile Emails Templates")
;
}

Expand Down
12 changes: 6 additions & 6 deletions src/Command/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Command;
namespace BadPixxel\BrevoBridge\Command;

use BadPixxel\SendinblueBridge\Models\AbstractEmail;
use BadPixxel\SendinblueBridge\Models\AbstractSms;
use BadPixxel\SendinblueBridge\Services\ConfigurationManager;
use BadPixxel\BrevoBridge\Models\AbstractEmail;
use BadPixxel\BrevoBridge\Models\AbstractSms;
use BadPixxel\BrevoBridge\Services\ConfigurationManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputInterface;
Expand Down Expand Up @@ -51,8 +51,8 @@ public function __construct(ConfigurationManager $config, string $name = null)
public function configure(): void
{
$this
->setName('sendinblue:api:debug')
->setDescription('Show SendInBlue API Configuration Details')
->setName('brevo:api:debug')
->setDescription('Show Brevo API Configuration Details')
;
}

Expand Down
10 changes: 5 additions & 5 deletions src/Command/EventTestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Command;
namespace BadPixxel\BrevoBridge\Command;

use BadPixxel\SendinblueBridge\Models\AbstractTrackEvent;
use BadPixxel\SendinblueBridge\Services\EventManager;
use BadPixxel\SendinblueBridge\Services\SmtpManager;
use BadPixxel\BrevoBridge\Models\AbstractTrackEvent;
use BadPixxel\BrevoBridge\Services\EventManager;
use BadPixxel\BrevoBridge\Services\SmtpManager;
use Sonata\UserBundle\Model\UserInterface as User;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
Expand Down Expand Up @@ -58,7 +58,7 @@ public function __construct(SmtpManager $smtpManager, EventManager $eventManager
public function configure(): void
{
$this
->setName('sendinblue:event:test')
->setName('brevo:event:test')
->setDescription("Tracker Event Sending test: require user email & event Code")
->addArgument(
'target',
Expand Down
8 changes: 4 additions & 4 deletions src/Command/MailTestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Command;
namespace BadPixxel\BrevoBridge\Command;

use BadPixxel\SendinblueBridge\Models\AbstractEmail;
use BadPixxel\SendinblueBridge\Services\SmtpManager;
use BadPixxel\BrevoBridge\Models\AbstractEmail;
use BadPixxel\BrevoBridge\Services\SmtpManager;
use Sonata\UserBundle\Model\UserInterface as User;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
Expand Down Expand Up @@ -50,7 +50,7 @@ public function __construct(SmtpManager $smtpManager, string $name = null)
public function configure(): void
{
$this
->setName('sendinblue:email:test')
->setName('brevo:email:test')
->setDescription("Email Sending test: require user email & email Code")
->addArgument(
'target',
Expand Down
8 changes: 4 additions & 4 deletions src/Command/PingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Command;
namespace BadPixxel\BrevoBridge\Command;

use ArrayAccess;
use BadPixxel\SendinblueBridge\Services\AccountManager;
use BadPixxel\BrevoBridge\Services\AccountManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -47,8 +47,8 @@ public function __construct(AccountManager $accountManager, string $name = null)
public function configure(): void
{
$this
->setName('sendinblue:api:ping')
->setDescription('Test Connection to SendInBlue API')
->setName('brevo:api:ping')
->setDescription('Test Connection to Brevo API')
;
}

Expand Down
8 changes: 4 additions & 4 deletions src/Command/SmsTestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* file that was distributed with this source code.
*/

namespace BadPixxel\SendinblueBridge\Command;
namespace BadPixxel\BrevoBridge\Command;

use BadPixxel\SendinblueBridge\Models\AbstractSms;
use BadPixxel\SendinblueBridge\Services\SmsManager;
use BadPixxel\BrevoBridge\Models\AbstractSms;
use BadPixxel\BrevoBridge\Services\SmsManager;
use Sonata\UserBundle\Model\UserInterface as User;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
Expand Down Expand Up @@ -50,7 +50,7 @@ public function __construct(SmsManager $smsManager, string $name = null)
public function configure(): void
{
$this
->setName('sendinblue:sms:test')
->setName('brevo:sms:test')
->setDescription("Sms Sending test: require user email & sms Code")
->addArgument(
'target',
Expand Down

0 comments on commit 18bede3

Please sign in to comment.