src/Auth/AclTrait.php
protected function _loadAclAdapter($adapter) {
		if (!class_exists($adapter)) {
			throw new Exception(sprintf('The Acl Adapter class "%s" was not found.', $adapter));
		}

		$adapterInstance = new $adapter();
		if (!($adapterInstance instanceof AclAdapterInterface)) {
			throw new InvalidArgumentException(sprintf(
				'TinyAuth Acl adapters have to implement %s.', AclAdapterInterface::class
			));
		}

		return $adapterInstance;
	}
protected function _loadAclAdapter($adapter) {
		if (!class_exists($adapter)) {
			throw new Exception(sprintf('The Acl Adapter class "%s" was not found.', $adapter));
		}

		$adapterInstance = new $adapter();
		if (!($adapterInstance instanceof AclAdapterInterface)) {
			throw new InvalidArgumentException(sprintf(
				'TinyAuth Acl adapters have to implement %s.', AclAdapterInterface::class
			));
		}

		return $adapterInstance;
	}
protected function _loadAclAdapter ( $ adapter ) { if ( ! class_exists ( $ adapter ) ) { throw new Exception ( sprintf ( 'The Acl Adapter class "%s" was not found.' , $ adapter ) ) ; } $ adapterInstance = new $ adapter ( ) ; if ( ! ( $ adapterInstance instanceof AclAdapterInterface ) ) { throw new InvalidArgumentException ( sprintf ( 'TinyAuth Acl adapters have to implement %s.' , AclAdapterInterface :: class ) ) ; } return $ adapterInstance ; }
Finds the Acl adapter to use for this request.

@param string $adapter Acl adapter to load.
@return \TinyAuth\Auth\AclAdapter\AclAdapterInterface
@throws \Cake\Core\Exception\Exception
@throws \InvalidArgumentException
Finds the Acl adapter to use for this request .