-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Attaching to HAL plugin event manager causes apigility admin to fail to load existing API's #58
Comments
I also have the same problem. Originally posted by @nebero at zfcampus/zf-apigility#79 (comment) |
Same problem here. Instead of $app = $e->getTarget();
$services = $app->getServiceManager();
$helpers = $services->get('ViewHelperManager');
$hal = $helpers->get('Hal');
$hal->getEventManager()->attach('renderEntity', array($this, 'onRenderEntity')); use $app = $e->getTarget();
$services = $app->getServiceManager();
$sharedEvents = $services->get('SharedEventManager');
$sharedEvents->attach('ZF\Hal\Plugin\Hal', 'renderEntity', array($this, 'onRenderEntity')); (from https://groups.google.com/a/zend.com/forum/#!msg/apigility-users/p4nm3scFxJM/D9ZjUqECYWUJ) Originally posted by @gaco79 at zfcampus/zf-apigility#79 (comment) |
Using the SharedEventManager in the way described by @gaco79 from the Google Groups thread fixed the problem resulting in the error message: Missing parameter "name" ++ for solution. Originally posted by @ashireman at zfcampus/zf-apigility#79 (comment) |
+1 for solution Originally posted by @danbroooks at zfcampus/zf-apigility#79 (comment) |
After attaching a listener to HAL plugin event manager and trying to edit API's in /apigility/ui#/api,and clicking on an existing API, it wont load. When I comment out the onBootstrap() method in Module.php, the existing API's load normally.
The call to /apigility/api/module/FileApi/rest?version=1 fails with this response:
Originally posted by @pdizz at zfcampus/zf-apigility#79
The text was updated successfully, but these errors were encountered: