Skip to content

Commit

Permalink
update namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginioo committed Oct 7, 2017
1 parent 633fe65 commit 80ca865
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 37 deletions.
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "ginioo/sandbox",
"description": "This's a micro component that makes you construct a tiny website easily.",
"keyword": ["sandbox", "website"],
"name": "ginioo/route",
"description": "This's a micro route component.",
"keyword": ["route", "php"],
"licence": "MIT",
"author": [
{
"name": "Gino Wu",
"role": "developer"
}
],
"support": {
Expand All @@ -17,7 +16,7 @@
},
"autoload": {
"psr-4": {
"Ginioo\\Sandbox\\": "src/"
"Ginioo\\Route\\": "src/"
}
}
}
}
5 changes: 1 addition & 4 deletions src/Event.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<?php
/**
* 事件
*
* @author Gino Wu
* @version v3
*/
namespace Ginioo\Sandbox;
namespace Ginioo\Route;

class Event
{
Expand Down
6 changes: 1 addition & 5 deletions src/Route.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<?php
/**
* Application
*
* @author Gino Wu
* @version v3
*/
namespace Ginioo\Sandbox;
namespace Ginioo\Route;

use \Exception;

Expand Down Expand Up @@ -178,7 +175,6 @@ protected function deligate($controllerClass, $method, $routeParameterDefinition
} else {
$reflectionMethod = new ReflectionMethod($controllerClass, $method);
echo $reflectionMethod->invokeArgs($oController, $params);
// call_user_func_array(array($oController, $method), $params);
}
};
}
Expand Down
13 changes: 13 additions & 0 deletions src/SampleController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
/**
* Controller Sample
*/
namespace Ginioo\Route;

class SampleController
{
public function test($input)
{
echo __CLASS__ . '::' . __FUNCTION__;
}
}
22 changes: 0 additions & 22 deletions src/TestController.php

This file was deleted.

0 comments on commit 80ca865

Please sign in to comment.