Skip to content

Commit deb2f3b

Browse files
committed
cleaned up bootstrap functions. Updated router component.
1 parent bb8b1f3 commit deb2f3b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Bootstrap.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
use Neuron\Data\Filter\Get;
33
use Neuron\Data\Filter\Server;
44
use Neuron\Data\Object\Version;
5-
use Neuron\Data\Setting\Source\Ini;
65
use Neuron\Data\Setting\Source\Yaml;
76
use Neuron\Mvc\Application;
8-
use Neuron\Patterns\Registry;
97

108
/**
119
* Initialize the application.
@@ -14,6 +12,7 @@
1412
* @return Application
1513
* @throws Exception
1614
*/
15+
1716
function Boot( string $ConfigPath ) : Application
1817
{
1918
/** @var Neuron\Data\Setting\Source\ISettingSource $Settings */
@@ -32,15 +31,11 @@ function Boot( string $ConfigPath ) : Application
3231
*
3332
* @param Application $App
3433
*/
34+
3535
function Dispatch( Application $App ) : void
3636
{
3737
$Route = Get::filterScalar( 'route' ) ?? "";
3838

39-
if( $Route && $Route[ 0 ] != "/" )
40-
{
41-
$Route = "/$Route";
42-
}
43-
4439
try
4540
{
4641
$Type = Server::filterScalar( 'REQUEST_METHOD' ) ?? "GET";

0 commit comments

Comments
 (0)