for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LmcUser\Controller\Plugin;
use Laminas\Mvc\Controller\Plugin\AbstractPlugin;
use Laminas\Authentication\AuthenticationService;
use Laminas\ServiceManager\ServiceLocatorInterface;
use LmcUser\Authentication\Adapter\AdapterChain as AuthAdapter;
class LmcUserAuthentication extends AbstractPlugin
{
/**
* @var AuthAdapter
*/
protected $authAdapter;
* @var AuthenticationService
protected $authService;
* @var ServiceLocatorInterface
protected $serviceLocator;
* Proxy convenience method
*
* @return bool
public function hasIdentity()
return $this->getAuthService()->hasIdentity();
}
* @return mixed
public function getIdentity()
return $this->getAuthService()->getIdentity();
* Get authAdapter.
* @return LmcUserAuthentication
public function getAuthAdapter()
return $this->authAdapter;
* Set authAdapter.
* @param authAdapter $authAdapter
public function setAuthAdapter(AuthAdapter $authAdapter)
$this->authAdapter = $authAdapter;
return $this;
* Get authService.
* @return AuthenticationService
public function getAuthService()
return $this->authService;
* Set authService.
* @param AuthenticationService $authService
public function setAuthService(AuthenticationService $authService)
$this->authService = $authService;