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

Better integration with Zend #63

Closed
widmogrod opened this issue Jun 18, 2013 · 3 comments
Closed

Better integration with Zend #63

widmogrod opened this issue Jun 18, 2013 · 3 comments

Comments

@widmogrod
Copy link

Hi, there is better way to intergrate Woops in Zend than coping Module.php.

In application.config.php in section module_listener_options->module_paths you can provide direct path to Whoops\Module.php

return array(
    'modules' => array(
        'Whoops',
        'Application'
    ),
    'module_listener_options' => array(
        'module_paths' => array(
            './module',
            'Whoops' => './vendor/filp/whoops/src/Whoops/Provider/Zend',
        ),
    ),
);

But even better would be to add in composer.json classmap and then only thing that you need to add to you ZF2 application is to provide module name Whoops in configuration

{
    "autoload": {
        "psr-0": {
            "WidRestApiDocumentator": "src"
        },
        "classmap": [
            "src/Whoops/Provider/Zend/Module.php"
        ]
    }
}
@widmogrod
Copy link
Author

If you wish I can create pull request.

@filp
Copy link
Owner

filp commented Jun 18, 2013

Hi! Please have a look at #57 - The Zend provider will be removed from the Whoops core in 1.1.0, in favor of ghislainf/zf2-whoops, which you may already start using.

@widmogrod
Copy link
Author

Cool. Thanks for information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants