Corrected typos in the comments.
Signed-off-by: Pavel <proger.xp@gmail.com>
This commit is contained in:
parent
728a320cbc
commit
482aed9379
|
@ -125,7 +125,7 @@ protected function get($bundles)
|
||||||
|
|
||||||
if ($response['status'] == 'not-found')
|
if ($response['status'] == 'not-found')
|
||||||
{
|
{
|
||||||
throw new \Exception("There is not a bundle named [$bundle].");
|
throw new \Exception("There is no bundle named [$bundle].");
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the bundle was retrieved successfully, we will add it to
|
// If the bundle was retrieved successfully, we will add it to
|
||||||
|
|
|
@ -148,7 +148,7 @@
|
||||||
|
|
|
|
||||||
| Finally we will register all of the bundles that have been defined for
|
| Finally we will register all of the bundles that have been defined for
|
||||||
| the application. None of them will be started, yet but will be setup
|
| the application. None of them will be started, yet but will be setup
|
||||||
| so that they may be started by the develop at any time.
|
| so that they may be started by the developer at any time.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -312,7 +312,7 @@ public function response($method, $parameters = array())
|
||||||
|
|
||||||
$response = call_user_func_array(array($this, $action), $parameters);
|
$response = call_user_func_array(array($this, $action), $parameters);
|
||||||
|
|
||||||
// If the controller has specified a layout view. The response
|
// If the controller has specified a layout view the response
|
||||||
// returned by the controller method will be bound to that
|
// returned by the controller method will be bound to that
|
||||||
// view and the layout will be considered the response.
|
// view and the layout will be considered the response.
|
||||||
if (is_null($response) and ! is_null($this->layout))
|
if (is_null($response) and ! is_null($this->layout))
|
||||||
|
|
|
@ -161,7 +161,7 @@ public static function group($attributes, Closure $callback)
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* // Register a route with the router
|
* // Register a route with the router
|
||||||
* Router::register('GET' ,'/', function() {return 'Home!';});
|
* Router::register('GET', '/', function() {return 'Home!';});
|
||||||
*
|
*
|
||||||
* // Register a route that handles multiple URIs with the router
|
* // Register a route that handles multiple URIs with the router
|
||||||
* Router::register(array('GET', '/', 'GET /home'), function() {return 'Home!';});
|
* Router::register(array('GET', '/', 'GET /home'), function() {return 'Home!';});
|
||||||
|
@ -542,7 +542,7 @@ public static function routes()
|
||||||
$fallback = array_get(static::$fallback, $method, array());
|
$fallback = array_get(static::$fallback, $method, array());
|
||||||
|
|
||||||
// When building the array of routes, we'll merge in all of the fallback
|
// When building the array of routes, we'll merge in all of the fallback
|
||||||
// routes for each request methdo individually. This allows us to avoid
|
// routes for each request method individually. This allows us to avoid
|
||||||
// collisions when merging the arrays together.
|
// collisions when merging the arrays together.
|
||||||
$routes[$method] = array_merge($routes[$method], $fallback);
|
$routes[$method] = array_merge($routes[$method], $fallback);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ public static function home($https = false)
|
||||||
$route = Router::find('home');
|
$route = Router::find('home');
|
||||||
|
|
||||||
// If a route named "home" exists, we'll route to that instead of using
|
// If a route named "home" exists, we'll route to that instead of using
|
||||||
// the single slash root URI. THis allows the HTTPS attribute to be
|
// the single slash root URI. This allows the HTTPS attribute to be
|
||||||
// respected instead of being hard-coded in the redirect.
|
// respected instead of being hard-coded in the redirect.
|
||||||
if ( ! is_null($route))
|
if ( ! is_null($route))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue