Commit 6ccc4e30 authored by kanellov's avatar kanellov

split config files; remove testing code from routes.php

parent 8bb6a57c
......@@ -18,8 +18,6 @@ $app->get('/', function ($request, $response, $args) {
'user' => $identity('uid'),
]);
var_dump($this->get('inventory_service')->getUnitEquipment('0551040'));
return $response;
})->setName('index');
......
<?php return [
'phpcas' => [
'serverVersion' => 'S1',
'proxy' => false,
'serverHostname' => '',
'serverPort' => 443,
'serverUri' => '/cas',
'changeSessionId' => false,
'handleLogoutRequests' => true,
'allowedClients' => [],
'lang' => 'CAS_Languages_Greek',
'casServerCaCert' => '',
'casServerCnValidate' => '',
'noCasServerValidation' => true,
],
];
\ No newline at end of file
<?php return [
'db' => [
'dsn' => '',
'user' => null,
'pass' => null,
'options' => [
],
],
];
\ No newline at end of file
<?php return [
'ldap' => [
'host' => '',
'username' => '',
'password' => '',
'baseDn' => '',
'port' => 389,
'useSsl' => false,
'bindRequiresDn' => true,
'accountCanonicalForm' => null,
'accountDomainName' => null,
'accountDomainNameShort' => null,
'accountFilterFormat' => null,
'allowEmptyPassword' => false,
'useStartTls' => false,
'optReferrals' => false,
'tryUsernameSplit' => true,
'networkTimeout' => null,
],
];
\ No newline at end of file
<?php return [
'determineRouteBeforeAppMiddleware' => false,
'displayErrorDetails' => false,
'db' => [
'dsn' => '',
'user' => null,
'pass' => null,
'options' => [
],
],
'phpcas' => [
'serverVersion' => 'S1',
'proxy' => false,
'serverHostname' => '',
'serverPort' => 443,
'serverUri' => '/cas',
'changeSessionId' => false,
'handleLogoutRequests' => true,
'allowedClients' => [],
'lang' => 'CAS_Languages_Greek',
'casServerCaCert' => '',
'casServerCnValidate' => '',
'noCasServerValidation' => true,
],
];
......@@ -13,7 +13,7 @@ if (PHP_SAPI === 'cli-server' && $_SERVER['SCRIPT_FILENAME'] !== __FILE__) {
return false;
}
require __DIR__ . '/../vendor/autoload.php';
require 'vendor/autoload.php';
session_name('GrEduLabs');
session_start();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment