Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Console routes are ignored #37

Closed
yourithielen opened this issue Oct 11, 2012 · 7 comments
Closed

Console routes are ignored #37

yourithielen opened this issue Oct 11, 2012 · 7 comments
Labels

Comments

@yourithielen
Copy link

When using a route guard, the routes for Console are not taken into account. Running a script now result in a fatal PHP error:
PHP Fatal error: Call to undefined method Zend\Console\Response::setStatusCode() in /home/www/noa/vendor/bjyoungblood/bjy-authorize/src/BjyAuthorize/View/UnauthorizedStrategy.php on line 92

Will console routes be supported in the future?

@Ocramius
Copy link
Contributor

@yourithielen guess you will have to implement that on your own first.

@5k7
Copy link

5k7 commented Jan 23, 2013

it's supported since 2.0.0.1 becouse i'm working on that version and it's working like charm ;)
https://zf2.readthedocs.org/en/latest/modules/zend.console.introduction.html

@Ocramius
Copy link
Contributor

@5k7: it works, but the unauthorized strategy currently doesn't take into account if a request is console or http based

@yourithielen
Copy link
Author

@5k7 I think you misunderstood, this is a problem of BjyAuthorize, not Zend Framework.

@5k7
Copy link

5k7 commented Jan 23, 2013

yes, you're right sorry ;)

@webdevilopers
Copy link

Have you found a workaround yet @yourithielen?

@Ocramius
Copy link
Contributor

Closing, see #91

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

No branches or pull requests

4 participants