597 search results

…almost always has some bugs and does not work in new versions of Symfony. The EasyAdmin bundle is too crowded with functions for simple display of data in a DataGrid with elementary possibilities that these controls should offer (pagination, sorting and filtering and nothing more ..…
Влада Петковић
Влада Петковић
Read Full Comment
…you may not see the usual information about the existing file. That's because EasyAdmin's form type uses a "model transformer" that seems to assume the file is stored locally. This is pretty fuzzy information - sorry about that - but if you want to try…
weaverryan
weaverryan
Read Full Comment
…would *really* want to do here is add a listener to kernel.request with this logic: ``` public function onKernelRequest(RequestEvent $event) { $request = $event->getRequest(); // if on the homepage if ($request->getPathInfo() === '/') { $event->setResponse(new RedirectResponse($this->router->generate('easyadmin')); } } ``` Does that makes sense…
weaverryan
weaverryan
Read Full Comment
…BALANCE] ROLE_CADET_SQUAD: [ROLE_STAFF, ROLE_LIST_ECTN, ROLE_SHOW_ECTN] ROLE_SQUAD: [ROLE_CADET_SQUAD, ROLE_ECTN_SQUAD] ROLE_CHIEF_OF_SQUAD: ROLE_SQUAD I have the same issue with easyadmin. I updated the config file but it does not refresh in prod...
Wilfried D.
Wilfried D.
Read Full Comment
…admin, front , member space)... How to well organize my project, how for example an admin can manage all the adverts via admin space (not easyAdmin), how a member can manage only his own adverts via his private space. How we can create these all spaces ..…
…C:\Nicolas\Symfony\Easyadmin\Easy1\vendor\knplabs\knp-markdown-bundle\Helper\MarkdownHelper.php on line 53 !! PHP Fatal error: Declaration of Knp\Bundle\MarkdownBundle\Helper\MarkdownHelper::getCharset() must be compatible with Symfony\Component\Templating\Helper\HelperInterface::getCharset(): string in C:\Nicolas\Symfony\Easyadmin\Easy1\vendor…
Nicolas-M
Nicolas-M
Read Full Comment
…exception: An exception occurred while executing 'DELETE FROM genus WHERE id = ?' with params [10]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`easy_admin_tutorial`.`genus_note`, CONSTRAINT `FK_6478FCEC85C4074C` FOREIGN KEY (`genus_id`)…
Mailbox Spain Mail forwarding
Mailbox Spain Mail forwarding
Read Full Comment
// ... lines 1 - 2
{% block content_footer %}
Made with 🤍 by the guys and gals at SymfonyCasts
{% endblock %}
See Code Block in Script
// ... lines 1 - 2
namespace AppBundle\Event;
// ... lines 4 - 5
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
// ... lines 7 - 8
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 11 - 21
}
See Code Block in Script
// ... lines 1 - 8
class EasyAdminSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
// ... lines 13 - 15
}
// ... lines 17 - 21
}
See Code Block in Script
// ... lines 1 - 4
use JavierEguiluz\Bundle\EasyAdminBundle\Event\EasyAdminEvents;
// ... lines 6 - 8
class EasyAdminSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [
EasyAdminEvents::PRE_UPDATE => 'onPreUpdate',
];
}
// ... lines 17 - 21
}
See Code Block in Script
// ... lines 1 - 6
use Symfony\Component\EventDispatcher\GenericEvent;
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 11 - 17
public function onPreUpdate(GenericEvent $event)
{
// ... line 20
}
}
See Code Block in Script
// ... lines 1 - 8
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 11 - 17
public function onPreUpdate(GenericEvent $event)
{
dump($event);die;
}
}
See Code Block in Script
// ... lines 1 - 10
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 13 - 26
public function onPreUpdate(GenericEvent $event)
{
$entity = $event->getSubject();
// ... lines 30 - 38
}
}
See Code Block in Script
// ... lines 1 - 5
use JavierEguiluz\Bundle\EasyAdminBundle\Event\EasyAdminEvents;
// ... lines 7 - 12
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 15 - 23
public static function getSubscribedEvents()
{
return [
EasyAdminEvents::PRE_EDIT => 'onPreEdit',
// ... line 28
];
}
// ... lines 31 - 59
}
See Code Block in Script
// ... lines 1 - 7
use Symfony\Component\EventDispatcher\GenericEvent;
// ... lines 9 - 12
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 15 - 31
public function onPreEdit(GenericEvent $event)
{
// ... lines 34 - 37
}
// ... lines 39 - 59
}
See Code Block in Script
// ... lines 1 - 12
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 15 - 31
public function onPreEdit(GenericEvent $event)
{
$config = $event->getSubject();
if ($config['class'] == User::class) {
// ... line 36
}
}
// ... lines 39 - 59
}
See Code Block in Script
// ... lines 1 - 12
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 15 - 31
public function onPreEdit(GenericEvent $event)
{
$config = $event->getSubject();
if ($config['class'] == User::class) {
$this->denyAccessUnlessSuperAdmin();
}
}
// ... lines 39 - 59
}
See Code Block in Script
// ... lines 1 - 12
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... lines 15 - 53
private function denyAccessUnlessSuperAdmin()
{
// ... lines 56 - 58
}
}
See Code Block in Script
// ... lines 1 - 9
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
// ... lines 11 - 12
class EasyAdminSubscriber implements EventSubscriberInterface
{
// ... line 15
private $authorizationChecker;
public function __construct(TokenStorageInterface $tokenStorage, AuthorizationCheckerInterface $authorizationChecker)
{
// ... line 20
$this->authorizationChecker = $authorizationChecker;
}
// ... lines 23 - 59
}
See Code Block in Script