import router.

This commit is contained in:
Taylor Otwell 2012-02-17 08:33:46 -06:00
parent ed72448fb0
commit 42b9d1e097
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<?php namespace Laravel; defined('DS') or die('No direct script access.'); <?php namespace Laravel; defined('DS') or die('No direct script access.');
use Laravel\Routing\Router;
use FilesystemIterator as fIterator; use FilesystemIterator as fIterator;
class Bundle { class Bundle {
@ -114,7 +115,7 @@ public static function routes($bundle)
// By setting the bundle property on the router the router knows what // By setting the bundle property on the router the router knows what
// value to replace the (:bundle) place-holder with when the bundle // value to replace the (:bundle) place-holder with when the bundle
// routes are added, keeping the routes flexible. // routes are added, keeping the routes flexible.
Routing\Router::$bundle = static::option($bundle, 'handles'); Router::$bundle = static::option($bundle, 'handles');
if ( ! static::routed($bundle) and file_exists($path)) if ( ! static::routed($bundle) and file_exists($path))
{ {