-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
97 additions
and
83 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
app/Controller/Controller.php → app/Controllers/Controller.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app/Controller/WelcomeController.php → app/Controllers/WelcomeController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
app/Middleware/Authenticate.php → app/Middlewares/Authenticate.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
namespace App\Middleware; | ||
|
||
namespace App\Middlewares; | ||
|
||
use Bow\Middleware\AuthMiddleware; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
app/Middleware/ClientCsrfMiddleware.php → app/Middlewares/ClientCsrfMiddleware.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace App\Middleware; | ||
namespace App\Middlewares; | ||
|
||
use Bow\Auth\Auth; | ||
use Bow\Http\Request; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace App\Model; | ||
namespace App\Models; | ||
|
||
use Bow\Auth\Authentication as Model; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
require __DIR__."/vendor/autoload.php"; | ||
|
||
/** | ||
* Make kernel instance | ||
*/ | ||
$kernel = \App\Kernel::configure(__DIR__.'/config'); | ||
|
||
/** | ||
* Create command instance and set filename | ||
*/ | ||
$setting = new \Bow\Console\Setting(__DIR__); | ||
$setting->setNamespaces($kernel->namespaces()); | ||
|
||
/** | ||
* Change preset destination | ||
*/ | ||
$setting->setModelDirectory(__DIR__.'/app/Model'); | ||
$setting->setValidationDirectory(__DIR__.'/app/Validation'); | ||
$setting->setPackageDirectory(__DIR__.'/app/Configuration'); | ||
$setting->setControllerDirectory(__DIR__.'/app/Controller'); | ||
$setting->setMiddlewareDirectory(__DIR__.'/app/Middleware'); | ||
$setting->setMigrationDirectory(__DIR__.'/migrations'); | ||
$setting->setSeederDirectory(__DIR__.'/seeders'); | ||
$setting->setComponentDirectory(__DIR__.'/frontend'); | ||
$setting->setConfigDirectory(__DIR__.'/config'); | ||
$setting->setPublicDirectory(__DIR__.'/public'); | ||
|
||
/** | ||
* Defines the local server starter | ||
*/ | ||
$setting->setServerFilename(__DIR__.'/server.php'); | ||
$setting->setVarDirectory(__DIR__.'/var'); | ||
|
||
/** | ||
* Create console instance | ||
*/ | ||
$console = new \Bow\Console\Console($setting); | ||
|
||
/** | ||
* Bind kernel to console | ||
*/ | ||
$console->bind($kernel); | ||
|
||
/** | ||
* Load the custom command application | ||
*/ | ||
require __DIR__.'/routes/console.php'; | ||
|
||
/** | ||
* Start console | ||
*/ | ||
$console->run(); | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
require __DIR__."/vendor/autoload.php"; | ||
|
||
/** | ||
* Make kernel instance | ||
*/ | ||
$kernel = \App\Kernel::configure(__DIR__.'/config'); | ||
|
||
/** | ||
* Create command instance and set filename | ||
*/ | ||
$setting = new \Bow\Console\Setting(__DIR__); | ||
$setting->setNamespaces($kernel->namespaces()); | ||
|
||
/** | ||
* Change preset destination | ||
*/ | ||
$setting->setModelDirectory(__DIR__.'/app/Models'); | ||
$setting->setValidationDirectory(__DIR__.'/app/Validations'); | ||
$setting->setPackageDirectory(__DIR__.'/app/Configurations'); | ||
$setting->setControllerDirectory(__DIR__.'/app/Controllers'); | ||
$setting->setMiddlewareDirectory(__DIR__.'/app/Middlewares'); | ||
$setting->setMigrationDirectory(__DIR__.'/migrations'); | ||
$setting->setSeederDirectory(__DIR__.'/seeders'); | ||
$setting->setComponentDirectory(__DIR__.'/frontend'); | ||
$setting->setConfigDirectory(__DIR__.'/config'); | ||
$setting->setPublicDirectory(__DIR__.'/public'); | ||
|
||
/** | ||
* Defines the local server starter | ||
*/ | ||
$setting->setServerFilename(__DIR__.'/server.php'); | ||
$setting->setVarDirectory(__DIR__.'/var'); | ||
|
||
/** | ||
* Create console instance | ||
*/ | ||
$console = new \Bow\Console\Console($setting); | ||
|
||
/** | ||
* Bind kernel to console | ||
*/ | ||
$console->bind($kernel); | ||
|
||
/** | ||
* Load the custom command application | ||
*/ | ||
require __DIR__.'/routes/console.php'; | ||
|
||
/** | ||
* Start console | ||
*/ | ||
$console->run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
<?php | ||
|
||
/** | ||
* Just tell Bow which URIs he should answer and give him the | ||
* controller to call when this URL is requested. | ||
* Follow the following example, it gives you an overview on how it works in general. | ||
*/ | ||
$app->get('/', 'WelcomeController')->middleware('auth'); | ||
$app->get('/login', 'WelcomeController')->middleware('guest'); | ||
$app->get('/', 'WelcomeController'); |