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 f15099d commit ac64407
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Models/AbstractSmsAdmin.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\Models;
namespace BadPixxel\BrevoBridge\Models;

use Sonata\AdminBundle\Admin\AbstractAdmin as Admin;
use Sonata\AdminBundle\Datagrid\DatagridInterface;
Expand Down
6 changes: 4 additions & 2 deletions src/Models/AbstractTrackEvent.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\Models;
namespace BadPixxel\BrevoBridge\Models;

use BadPixxel\SendinblueBridge\Services\EventManager;
use BadPixxel\BrevoBridge\Services\EventManager;
use Exception;
use Sonata\UserBundle\Model\UserInterface as User;
use Symfony\Component\OptionsResolver\OptionsResolver;
Expand Down Expand Up @@ -104,6 +104,7 @@ public static function send(User $user): bool
// Create a New Instance of the Event
/** @var AbstractTrackEvent $instance */
$instance = call_user_func_array($callback, func_get_args());

//==============================================================================
// Create a New Instance of the Event
return $instance->sendEvent(false);
Expand Down Expand Up @@ -132,6 +133,7 @@ public static function sendDemo(User $user): bool
// Create a New Instance of the Event
/** @var AbstractTrackEvent $instance */
$instance = call_user_func_array($callback, func_get_args());

//==============================================================================
// Send Event to SendInBlue API
return $instance->sendEvent(true);
Expand Down

0 comments on commit ac64407

Please sign in to comment.