Browse Source

Facade should support calls with no parameters.

Taylor Otwell 13 years ago
parent
commit
d82f1d40c0
1 changed files with 5 additions and 1 deletions
  1. 5 1
      laravel/facades.php

+ 5 - 1
laravel/facades.php

@@ -35,6 +35,10 @@ abstract class Facade {
 		{
 			return call_user_func_array(array($class, $method), $parameters);
 		}
+		elseif ($count == 0)
+		{
+			return $class->$method();
+		}
 		elseif ($count == 1)
 		{
 			return $class->$method($parameters[0]);
@@ -59,4 +63,4 @@ abstract class Facade {
 
 }
 
-class Session extends Facade { public static $resolve = 'laravel.session'; }
+class Session extends Facade { public static $resolve = 'laravel.session'; }