Closed nathggns closed 11 years ago
Couple of issues. I'd like your input on how to solve them.
--key=val
. The formats --key val
and -key val
and -keyval
are not supported. It is indeed possible to send CONSOLE
requests via HTTP.
⇒ telnet projects.local 80
Trying 127.0.0.1...
Connected to projects.local.
Escape character is '^]'.
CONSOLE /Scaffold/ HTTP/1.0
HTTP/1.1 500 Internal Server Error
Date: Wed, 05 Jun 2013 20:54:53 GMT
Server: Apache/2.2.22 (Unix) DAV/2 PHP/5.4.11 mod_ssl/2.2.22 OpenSSL/0.9.8x
X-Powered-By: PHP/5.4.11
Content-Length: 178
Connection: close
Content-Type: application/json
{
"error": {
"code": 500,
"message": "Internal Server Error",
"debug": {
"type": 1,
"file": "system\/classes\/router.php:304",
"error": "Call to undefined method ControllerIndex::console()"
}
}
}
Implement it
What do you mean?
Also, need to add an environment argument
Nope, don't need to add an environment argument. Possibly to pass that in as a environment variable.
$ SCAFFOLD_ENV=production php index.php
...
What needs to be changed to merge this @ClaudioAlbertin?
Don't merge this.
Okay, now it's ready. @ClaudioAlbertin
Maybe the new middleware system will make this easier. I think we should merge it now and then improve it. If you agree, merge.
I'd like to integrate console applications to the router. Maybe emulate a request like GET but make it CONSOLE.