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 Apr 26, 2023
1 parent 56138ab commit 2e691ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
5 changes: 2 additions & 3 deletions src/Controller/TemplatesAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Templating\EngineInterface;
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Loader\FilesystemLoader;
Expand Down Expand Up @@ -86,14 +85,14 @@ public function listAction(Request $request): Response
* Complete Debug of an Email Template
*
* @param KernelInterface $kernel
* @param EngineInterface $twig
* @param Environment $twig
* @param string $emailCode
*
* @throws LoaderError
*
* @return Response
*/
public function viewAction(KernelInterface $kernel, EngineInterface $twig, string $emailCode): Response
public function viewAction(KernelInterface $kernel, Environment $twig, string $emailCode): Response
{
//==============================================================================
// Identify Email Class
Expand Down
1 change: 0 additions & 1 deletion src/Models/AbstractSmsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ protected function configureListFields(ListMapper $list): void
->add('email')
->add('subject')
->add('textContent')
->add('')
;
}

Expand Down
14 changes: 7 additions & 7 deletions src/Models/UserEmails/MetadataTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ trait MetadataTrait
* @ORM\Column(name="refreshed_at", type="datetime", nullable=true)
*/
protected ?DateTime $refreshedAt = null;

/**
* @var null|GetEmailEventReportEvents[]
*
* @ORM\Column(name="events", type="array", nullable=true)
*/
protected ?array $events = null;
/**
* @var array
*/
Expand All @@ -73,13 +80,6 @@ trait MetadataTrait
// Event::EVENT_UNSUBSCRIBED
);

/**
* @var null|GetEmailEventReportEvents[]
*
* @ORM\Column(name="events", type="array", nullable=true)
*/
private ?array $events = null;

//==============================================================================
// MAIN FUNCTIONS
//==============================================================================
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/Admin/action_refresh.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ file that was distributed with this source code.
#}

{% if object is defined and object.id is not empty %}
{% if admin.canAccessObject('edit', object) and admin.hasRoute('refresh') %}
{% if admin.checkAccess('edit', object) and admin.hasRoute('refresh') %}
<li>
<a class="sonata-action-element text-purple" href="{{ admin.generateObjectUrl('refresh', object) }}">
<i class="fa fa-refresh" aria-hidden="true"></i>
Expand Down

0 comments on commit 2e691ea

Please sign in to comment.