Browse Source

tweaking facades.

Taylor Otwell 13 years ago
parent
commit
cd395c2638

+ 5 - 1
laravel/cache/manager.php

@@ -3,7 +3,11 @@
 use Laravel\Facade;
 use Laravel\Container;
 
-class Manager_Facade extends Facade { public static $resolve = 'cache'; }
+class Manager_Facade extends Facade {
+
+	public static $resolve = 'cache';
+
+}
 
 class Manager {
 

+ 5 - 1
laravel/config.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Config_Facade extends Facade { public static $resolve = 'config'; }
+class Config_Facade extends Facade {
+
+	public static $resolve = 'config'; 
+
+}
 
 class Config {
 

+ 8 - 1
laravel/controller.php

@@ -14,7 +14,14 @@ abstract class Controller extends Resolver {
 
 	/**
 	 * Magic Method to handle calls to undefined functions on the controller.
+	 *
+	 * By default, the 404 response will be returned for an calls to undefined
+	 * methods on the controller. However, this method may also be overridden
+	 * and used as a pseudo-router by the controller.
 	 */
-	public function __call($method, $parameters) { return $this->response->error('404'); }
+	public function __call($method, $parameters)
+	{
+		return $this->response->error('404');
+	}
 
 }

+ 5 - 1
laravel/cookie.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Cookie_Facade extends Facade { public static $resolve = 'cookie'; }
+class Cookie_Facade extends Facade {
+
+	public static $resolve = 'cookie';
+
+}
 
 class Cookie {
 

+ 5 - 1
laravel/database/manager.php

@@ -2,7 +2,11 @@
 
 use Laravel\Facade;
 
-class Manager_Facade extends Facade { public static $resolve = 'database'; }
+class Manager_Facade extends Facade {
+
+	public static $resolve = 'database';
+
+}
 
 class Manager {
 

+ 5 - 1
laravel/download.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Download_Facade extends Facade { public static $resolve = 'download'; }
+class Download_Facade extends Facade {
+
+	public static $resolve = 'download';
+
+}
 
 class Download extends Response {
 

+ 5 - 1
laravel/file.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class File_Facade extends Facade { public static $resolve = 'file'; }
+class File_Facade extends Facade {
+
+	public static $resolve = 'file';
+
+}
 
 class File {
 

+ 5 - 1
laravel/form.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Form_Facade extends Facade { public static $resolve = 'form'; }
+class Form_Facade extends Facade {
+
+	public static $resolve = 'form';
+
+}
 
 class Form {
 

+ 5 - 1
laravel/html.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class HTML_Facade extends Facade { public static $resolve = 'html'; }
+class HTML_Facade extends Facade {
+
+	public static $resolve = 'html';
+
+}
 
 class HTML {
 

+ 5 - 1
laravel/input.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Input_Facade extends Facade { public static $resolve = 'input'; }
+class Input_Facade extends Facade {
+
+	public static $resolve = 'input';
+
+}
 
 class Input {
 

+ 5 - 1
laravel/lang.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Lang_Facade extends Facade { public static $resolve = 'lang'; }
+class Lang_Facade extends Facade {
+
+	public static $resolve = 'lang';
+
+}
 
 class Lang_Factory {
 

+ 5 - 1
laravel/loader.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Loader_Facade extends Facade { public static $resolve = 'loader'; }
+class Loader_Facade extends Facade {
+
+	public static $resolve = 'loader';
+
+}
 
 class Loader {
 

+ 5 - 1
laravel/package.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Package_Facade extends Facade { public static $resolve = 'package'; }
+class Package_Facade extends Facade {
+
+	public static $resolve = 'package';
+
+}
 
 class Package {
 

+ 5 - 1
laravel/redirect.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Redirect_Facade extends Facade { public static $resolve = 'redirect'; }
+class Redirect_Facade extends Facade {
+
+	public static $resolve = 'redirect';
+
+}
 
 class Redirect extends Response {
 

+ 5 - 1
laravel/request.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Request_Facade extends Facade { public static $resolve = 'request'; }
+class Request_Facade extends Facade {
+
+	public static $resolve = 'request';
+
+}
 
 class Request {
 

+ 5 - 1
laravel/response.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class Response_Facade extends Facade { public static $resolve = 'response'; }
+class Response_Facade extends Facade {
+
+	public static $resolve = 'response';
+
+}
 
 class Response_Factory {
 

+ 5 - 1
laravel/security/authenticator.php

@@ -4,7 +4,11 @@ use Laravel\IoC;
 use Laravel\Facade;
 use Laravel\Session\Driver;
 
-class Authenticator_Facade extends Facade { public static $resolve = 'auth'; }
+class Authenticator_Facade extends Facade {
+
+	public static $resolve = 'auth';
+
+}
 
 class Authenticator {
 

+ 5 - 1
laravel/security/crypter.php

@@ -3,7 +3,11 @@
 use Laravel\IoC;
 use Laravel\Facade;
 
-class Crypter_Facade extends Facade { public static $resolve = 'crypter'; }
+class Crypter_Facade extends Facade {
+
+	public static $resolve = 'crypter';
+
+}
 
 class Crypter {
 

+ 5 - 1
laravel/security/hashing/hasher.php

@@ -2,7 +2,11 @@
 
 use Laravel\Facade;
 
-class Hasher_Facade extends Facade { public static $resolve = 'hasher'; }
+class Hasher_Facade extends Facade {
+
+	public static $resolve = 'hasher';
+
+}
 
 class Hasher {
 

+ 5 - 1
laravel/session/manager.php

@@ -3,7 +3,11 @@
 use Laravel\Facade;
 use Laravel\Container;
 
-class Manager_Facade extends Facade { public static $resolve = 'session'; }
+class Manager_Facade extends Facade {
+
+	public static $resolve = 'session';
+
+}
 
 class Manager {
 

+ 5 - 1
laravel/url.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class URL_Facade extends Facade { public static $resolve = 'url'; }
+class URL_Facade extends Facade {
+
+	public static $resolve = 'url';
+
+}
 
 class URL {
 

+ 5 - 1
laravel/validation/validator.php

@@ -5,7 +5,11 @@ use Laravel\Str;
 use Laravel\Facade;
 use Laravel\Lang_Factory;
 
-class Validator_Facade extends Facade { public static $resolve = 'validator'; }
+class Validator_Facade extends Facade {
+
+	public static $resolve = 'validator';
+
+}
 
 class Validator {
 

+ 5 - 1
laravel/view.php

@@ -1,6 +1,10 @@
 <?php namespace Laravel;
 
-class View_Facade extends Facade { public static $resolve = 'view'; }
+class View_Facade extends Facade {
+
+	public static $resolve = 'view';
+
+}
 
 /**
  * The view composer class is responsible for calling the composer on a view and