public static function register($implementation)
    {
        $object = new $implementation();
        if (!($object instanceof \Phramework\Authentication\IAuthentication)) {
            throw new \Exception(
                'Class is not implementing \Phramework\Authentication\IAuthentication'
            );
        }

        self::$implementations[] = $object;
    }
public static function register($implementation)
    {
        $object = new $implementation();
        if (!($object instanceof \Phramework\Authentication\IAuthentication)) {
            throw new \Exception(
                'Class is not implementing \Phramework\Authentication\IAuthentication'
            );
        }

        self::$implementations[] = $object;
    }
public static function register ( $ implementation ) { $ object = new $ implementation ( ) ; if ( ! ( $ object instanceof \ Phramework \ Authentication \ IAuthentication ) ) { throw new \ Exception ( 'Class is not implementing \Phramework\Authentication\IAuthentication' ) ; } self :: $ implementations [ ] = $ object ; }
Register an authentication implementation.
Implementation must implement
`\Phramework\Authentication\IAuthentication` interface
@param  string $implementation implementation class
@throws Exception
Register an authentication implementation . Implementation must implement \ Phramework \ Authentication \ IAuthentication interface