Skip to content

Commit

Permalink
Fix config file for php 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Nov 25, 2023
1 parent 4cd46b4 commit 1d74611
Showing 1 changed file with 24 additions and 32 deletions.
56 changes: 24 additions & 32 deletions tests/Forward/Fixture/Config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,35 @@

use Rougin\Slytherin\Forward\Fixture\Router;

return
[
'name' => 'Slytherin',
$config = array('name' => 'Slytherin');
$config['base_url'] = 'http://localhost:8000';
$config['environment'] = 'development';
$config['timezone'] = 'Asia/Manila';

'base_url' => 'http://localhost:8000',
$http = array();
$http['cookies'] = array();
$http['files'] = array();
$http['get'] = array();
$http['post'] = array();
$http['server'] = array();
$config['http'] = $http;

'environment' => 'development',
$packages = array();

'timezone' => 'Asia/Manila',
// Testing Packages -----------------------------------------------------
$packages[] = 'Rougin\Slytherin\Forward\Fixture\Packages\HttpPackage';
$packages[] = 'Rougin\Slytherin\Forward\Fixture\Packages\RoutingPackage';
// ----------------------------------------------------------------------

'http' =>
[
'cookies' => array(),
// Slytherin Integrations --------------------------------------------
$packages[] = 'Rougin\Slytherin\Integration\ConfigurationIntegration';
$packages[] = 'Rougin\Slytherin\Middleware\MiddlewareIntegration';
// -------------------------------------------------------------------

'files' => array(),
$config['router'] = new Router;

'get' => array(),
$config['middlewares'] = array();

'post' => array(),
$config['packages'] = $packages;

'server' => array(),
],

'router' => new Router,

'middlewares' => [],

'packages' =>
[
// Testing Packages ---------------------------------------
'Rougin\Slytherin\Forward\Fixture\Packages\HttpPackage',
'Rougin\Slytherin\Forward\Fixture\Packages\RoutingPackage',
// --------------------------------------------------------

// Slytherin Integrations ------------------------------
'Rougin\Slytherin\Integration\ConfigurationIntegration',
'Rougin\Slytherin\Middleware\MiddlewareIntegration',
// -----------------------------------------------------
],
];
return $config;

0 comments on commit 1d74611

Please sign in to comment.