mtudor / zfcuserimpersonate Goto Github PK
View Code? Open in Web Editor NEWAn extension module for ZfcUser with ZF2 which allows one user to "impersonate" another. Useful for troubleshooting and support.
License: Other
An extension module for ZfcUser with ZF2 which allows one user to "impersonate" another. Useful for troubleshooting and support.
License: Other
If you need this, +1 it so I can gauge demand. :)
when playing around with sysdig and php opcode cache,
I discovered that the 3 service config files are being read from the file system on every request.
The opcode cache does not hit because they all contain closures.
By using factories we will add a bunch of new files but it will perform better with opcode cache enabled.
Can you clarify the license this code is released under?
A LICENSE
file could be in the repository, file and/or class header could reference it and it would be good to have this in composer.json
as well. I can contribute one or all of the above if you let me know what it is. :)
any update to support zf3 ?
I have successfully installed this module via composer, but I'm not sure how to set it up and get it working in my app. Can you give some instructions?
After getting the module enabled, I get this message when I try to go to the change password page:
Zend\View\Renderer\PhpRenderer::render: Unable to render template "zfc-user-impersonate/user/changepassword"; resolver could not resolve to a file
I got a similar message about the login page and was able to clear it up by copying the template to view/zfc-user-impersonate/user/login.phtml, but is this really intended to be necessary? Shouldn't it just use the default zfcUser templates?
I'm not sure this is related to your module, but I'm currently only having the issue while impersonating. If I edit a user entity while impersonating, I get this error:
Catchable fatal error: Object of class __PHP_Incomplete_Class could not be
converted to string in
/Applications/MAMP/htdocs/mrss/vendor/zendframework/zend-developer-
tools/src/ZendDeveloperTools/Exception/SerializableException.php on line 180
This happens regardless of whether I'm editing the original user, impersonated user or some other user. But if I'm not impersonating, I can edit any user with no trouble. Any ideas?
After enabling the module, i get this error on the login page:
Missing argument 1 for ZfcUser\Controller\UserController::__construct(), called in /vendor/zendframework/zendframework/library/Zend/ServiceManager/AbstractPluginManager.php on line 170 and defined in /vendor/zf-commons/zfc-user/src/ZfcUser/Controller/UserController.php .
Any ideas? Thanks!
I am trying to set up a zf2 project that uses ZfcUserImpersonate, but I am getting stuck with this error:
Fatal error: Class 'ZfcUserImpersonate\Module\AbstractModule' not found in module\ZfcUserImpersonate\Module.php on line 16
I am not sure what I am missing, I have all the files in the vendor folder but the "use" doesn't seem to be able to include the AbstractModule.php file!
Any suggestions on what I might have missed out??
Thanks,
Dee
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.