src/Charcoal/Admin/ServiceProvider/AdminServiceProvider.php
protected function registerAuthExtensions(Container $container)
    {
        /**
         * @param  Container $container The Pimple DI Container.
         * @return Authenticator
         */
        $container['admin/authenticator'] = function (Container $container) {
            return new Authenticator([
                'logger'        => $container['logger'],
                'user_type'     => User::class,
                'user_factory'  => $container['model/factory'],
                'token_type'    => AuthToken::class,
                'token_factory' => $container['model/factory']
            ]);
        };

        /**
         * For 'charcoal-ui'
         *
         * @todo   Do this right!
         * @param  Container $container The Pimple DI Container.
         * @return Authenticator
         */
        $container['authenticator'] = function (Container $container) {
            return $container['admin/authenticator'];
        };

        /**
         * @param  Container $container The Pimple DI container.
         * @return Authorizer
         */
        $container['admin/authorizer'] = function (Container $container) {
            return new Authorizer([
                'logger'   => $container['logger'],
                'acl'      => $container['admin/acl'],
                'resource' => 'admin'
            ]);
        };

        /**
         * For 'charcoal-ui'
         *
         * @todo   Do this right!
         * @param  Container $container The Pimple DI Container.
         * @return Authorizer
         */
        $container['authorizer'] = function (Container $container) {
            return $container['admin/authorizer'];
        };
    }
protected function registerAuthExtensions(Container $container)
    {
        /**
         * @param  Container $container The Pimple DI Container.
         * @return Authenticator
         */
        $container['admin/authenticator'] = function (Container $container) {
            return new Authenticator([
                'logger'        => $container['logger'],
                'user_type'     => User::class,
                'user_factory'  => $container['model/factory'],
                'token_type'    => AuthToken::class,
                'token_factory' => $container['model/factory']
            ]);
        };

        /**
         * For 'charcoal-ui'
         *
         * @todo   Do this right!
         * @param  Container $container The Pimple DI Container.
         * @return Authenticator
         */
        $container['authenticator'] = function (Container $container) {
            return $container['admin/authenticator'];
        };

        /**
         * @param  Container $container The Pimple DI container.
         * @return Authorizer
         */
        $container['admin/authorizer'] = function (Container $container) {
            return new Authorizer([
                'logger'   => $container['logger'],
                'acl'      => $container['admin/acl'],
                'resource' => 'admin'
            ]);
        };

        /**
         * For 'charcoal-ui'
         *
         * @todo   Do this right!
         * @param  Container $container The Pimple DI Container.
         * @return Authorizer
         */
        $container['authorizer'] = function (Container $container) {
            return $container['admin/authorizer'];
        };
    }
protected function registerAuthExtensions ( Container $ container ) { /**
         * @param  Container $container The Pimple DI Container.
         * @return Authenticator
         */ $ container [ 'admin/authenticator' ] = function ( Container $ container ) { return new Authenticator ( [ 'logger' => $ container [ 'logger' ] , 'user_type' => User :: class , 'user_factory' => $ container [ 'model/factory' ] , 'token_type' => AuthToken :: class , 'token_factory' => $ container [ 'model/factory' ] ] ) ; } ; /**
         * For 'charcoal-ui'
         *
         * @todo   Do this right!
         * @param  Container $container The Pimple DI Container.
         * @return Authenticator
         */ $ container [ 'authenticator' ] = function ( Container $ container ) { return $ container [ 'admin/authenticator' ] ; } ; /**
         * @param  Container $container The Pimple DI container.
         * @return Authorizer
         */ $ container [ 'admin/authorizer' ] = function ( Container $ container ) { return new Authorizer ( [ 'logger' => $ container [ 'logger' ] , 'acl' => $ container [ 'admin/acl' ] , 'resource' => 'admin' ] ) ; } ; /**
         * For 'charcoal-ui'
         *
         * @todo   Do this right!
         * @param  Container $container The Pimple DI Container.
         * @return Authorizer
         */ $ container [ 'authorizer' ] = function ( Container $ container ) { return $ container [ 'admin/authorizer' ] ; } ; }
Registers user-authentication extensions.

@param  Container $container The Pimple DI container.
@return void
Registers user - authentication extensions .