Skip to content

Commit

Permalink
Merge pull request #75 from bowphp/5.x-ref-update
Browse files Browse the repository at this point in the history
[5.x] Set the APP_DEBUG mode variable
  • Loading branch information
papac authored May 19, 2023
2 parents 84ae75b + dea05cc commit 9750611
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .env.example.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"APP_ENV": "development",
"APP_NAME": "Bow Application",
"APP_ENV": "development",
"APP_DEBUG": true,
"APP_KEY": "",
"APP_URL": "http://localhost:5000",

Expand Down
12 changes: 7 additions & 5 deletions app/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@

use Bow\Http\Request;
use Bow\Http\Response;
use Bow\Configuration\Loader as Config;
use Bow\Database\Database;
use Bow\Validation\Validate;
use Bow\Validation\Validator;
use Bow\Queue\ProducerService;
use Bow\Contracts\ResponseInterface;
use Bow\Configuration\Loader as Config;
use Bow\Database\QueryBuilder;

class Controller
{
Expand All @@ -28,9 +30,9 @@ public function queue(ProducerService $producer)
*
* @param mixed $url
* @param array $parameters
* @return mixed
* @return ResponseInterface
*/
public function redirect($url = null, array $parameters = []): RedirectInterface
public function redirect($url = null, array $parameters = []): ResponseInterface
{
if (is_null($url)) {
return redirect();
Expand Down Expand Up @@ -101,9 +103,9 @@ public function db(?string $name = null, ?callable $cb = null)
*
* @param $name
* @param string $connexion
* @return \Bow\Database\Query\Builder
* @return QueryBuilder
*/
public function table(string $name, ?string $connexion = null): \Bow\Database\Query\Builder
public function table(string $name, ?string $connexion = null): QueryBuilder
{
return table($name, $connexion);
}
Expand Down

0 comments on commit 9750611

Please sign in to comment.