src/ChickenWire/Auth.php
public static function add($name, array $options) 
		{

			// Already known?
			if (array_key_exists($name, self::$_auths)) {
				throw new \Exception("There is already a Auth defined for '$name'.", 1);				
			}

			// Create it
			$auth = new Auth($name, $options);
			self::$_auths[$name] = $auth;
			return $auth;

		}
public static function add($name, array $options) 
		{

			// Already known?
			if (array_key_exists($name, self::$_auths)) {
				throw new \Exception("There is already a Auth defined for '$name'.", 1);				
			}

			// Create it
			$auth = new Auth($name, $options);
			self::$_auths[$name] = $auth;
			return $auth;

		}
public static function add ( $ name , array $ options ) { // Already known? if ( array_key_exists ( $ name , self :: $ _auths ) ) { throw new \ Exception ( "There is already a Auth defined for '$name'." , 1 ) ; } // Create it $ auth = new Auth ( $ name , $ options ) ; self :: $ _auths [ $ name ] = $ auth ; return $ auth ; }
Add a new authentication to the framework
@param string $name    The reference key for this Auth object
@param array  $options Array with options
@see __construct()
@return Auth The newly created Auth.
Add a new authentication to the framework