Skip to content

Commit

Permalink
dispatch
Browse files Browse the repository at this point in the history
dispatch
  • Loading branch information
hisune committed Jul 9, 2014
1 parent 62fe2d5 commit dfbd2c1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Tiny/Dispatch.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* Created by lyx.
* User: [email protected]
* Date: 14-7-9
* Time: 下午5:54
*/
namespace Tiny;

class Dispatch
{
public $routes;

public function __construct(array $routes)
{
$this->routes = $routes;
}

public function controller($path)
{

}


/**
* Parse the given URL path and return the correct controller and parameters.
*
* @param string $path segment of URL
* @param array $routes to test against
* @return array
*/
public function route($path)
{

}
}

0 comments on commit dfbd2c1

Please sign in to comment.