This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reorganized configs and dependencies
- Loading branch information
Showing
14 changed files
with
97 additions
and
52 deletions.
There are no files selected for viewing
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
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 was deleted.
Oops, something went wrong.
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,8 +1,6 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
|
||
|
||
return [ | ||
'dependencies' => [] | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
return [ | ||
'app' => [ | ||
'app_namespace' => 'MyApp', | ||
], | ||
]; |
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,19 +1,10 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
use Selami\Router\Router; | ||
|
||
return [ | ||
'config_cache_enabled' => false, | ||
'routes' => [ | ||
[Router::GET, '/', MyApp\Contents\Main::class, Router::HTML, 'home'], | ||
[Router::GET, '/category/{category}', MyApp\Contents\Category::class, Router::HTML, 'category'], | ||
[Router::GET, '/{year}/{month}/{slug}', MyApp\Contents\Post::class, Router::JSON, 'post'], | ||
[Router::GET, '/download', MyApp\Contents\Download::class, Router::DOWNLOAD], | ||
[Router::GET, '/text', MyApp\Contents\Text::class, Router::TEXT], | ||
[Router::GET, '/custom', MyApp\Contents\Custom::class, Router::CUSTOM], | ||
[Router::GET, '/redirect', MyApp\Contents\Redirect::class, Router::REDIRECT], | ||
[Router::GET, '/redirected', MyApp\Contents\Redirected::class, Router::HTML], | ||
[Router::POST, '/405', MyApp\Contents\NotFound::class, Router::JSON] | ||
] | ||
'app' => [ | ||
'cache_dir' => './cache', | ||
'config_cache_enabled' => false, // enable on production | ||
'router_cache_file-selami-example-app' => false, // './cache/fastroute.selami-example-app.cache' | ||
], | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
return [ | ||
'app' => [ | ||
'cache_dir' => './cache', | ||
'config_cache_enabled' => true, // enable on production | ||
'router_cache_file-selami-example-app' => './cache/fastroute.selami-example-app.cache' | ||
], | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
use Selami\Router\Router; | ||
|
||
return [ | ||
'routes' => [ | ||
[Router::GET, '/', MyApp\Contents\Main::class, Router::HTML, 'home'], | ||
[Router::GET, '/category/{category}', MyApp\Contents\Category::class, Router::HTML, 'category'], | ||
[Router::GET, '/{year}/{month}/{slug}', MyApp\Contents\Post::class, Router::JSON, 'post'], | ||
[Router::GET, '/download', MyApp\Contents\Download::class, Router::DOWNLOAD], | ||
[Router::GET, '/text', MyApp\Contents\Text::class, Router::TEXT], | ||
[Router::GET, '/custom', MyApp\Contents\Custom::class, Router::CUSTOM], | ||
[Router::GET, '/redirect', MyApp\Contents\Redirect::class, Router::REDIRECT], | ||
[Router::GET, '/redirected', MyApp\Contents\Redirected::class, Router::HTML], | ||
[Router::POST, '/405', MyApp\Contents\NotFound::class, Router::JSON] | ||
] | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
return [ | ||
'view' => [ | ||
'type' => 'twig', | ||
'templates_path' => './templates', | ||
'template_file_extension' => 'twig', | ||
'twig' => [ | ||
'debug' => true, // disable on production | ||
'strict_variables' => true, // disable on production | ||
'autoescape' => 'html', | ||
'cache' => false, // change to a valid file path to enable caching on production | ||
'auto_reload' => true, // disable on production | ||
'optimizations' => 0 // change to -1 on production | ||
], | ||
] | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
return [ | ||
'view' => [ | ||
'type' => 'twig', | ||
'templates_path' => './templates', | ||
'template_file_extension' => 'twig', | ||
'twig' => [ | ||
'debug' => false, // disable on production | ||
'strict_variables' => false, // disable on production | ||
'autoescape' => 'html', | ||
'cache' => './cache/twig', // change to a valid file path to enable caching on production | ||
'auto_reload' => false, // disable on production | ||
'optimizations' => -1 // change to -1 on production | ||
], | ||
] | ||
]; |
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