Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command "sonata:admin:explain" cause a fatal error / Security context #3

Closed
FabienD opened this issue Jan 2, 2014 · 1 comment · Fixed by #4
Closed

Command "sonata:admin:explain" cause a fatal error / Security context #3

FabienD opened this issue Jan 2, 2014 · 1 comment · Fixed by #4
Assignees
Labels

Comments

@FabienD
Copy link

FabienD commented Jan 2, 2014

Hi,

With this bundle, the Sonata command line "sonata:admin:explain" cause a fatal error (Security context is not available through command line) :

PHP Fatal error:  Call to a member function getUser() on a non-object in /Users/fabien/Workspaces/Sites/sandbox.dev/vendor/tilleuls/acl-sonata-admin-extension-bundle/CoopTilleuls/Bundle/AclSonataAdminExtensionBundle/Admin/AclAdminExtension.php on line 50

May be a simple patch like this can solve the issue :

https://gist.github.com/FabienD/8221873

Regards,
Fabien

@dunglas
Copy link
Member

dunglas commented Jan 2, 2014

Can you make a PR?

@ghost ghost assigned dunglas Jan 2, 2014
@FabienD FabienD mentioned this issue Jan 2, 2014
@dunglas dunglas closed this as completed in #4 Jan 4, 2014
dunglas added a commit that referenced this issue Jan 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants