original_string: public static function check($name, $user, $request, $options = []) {
  		if (($config = static::_config($name)) === null) {
  			throw new ConfigException("Configuration `{$name}` has not been defined.");
  		}
  		$filter = function($self, $params) use ($name) {
  			$user = $params['user'];
  			$request = $params['request'];
  			$options = $params['options'];
  			return $self::adapter($name)->check($user, $request, $options);
  		};
  		$params = compact('user', 'request', 'options');
  		return static::_filter(__FUNCTION__, $params, $filter, (array) $config['filters']);
  	}
code: public static function check($name, $user, $request, $options = []) {
  		if (($config = static::_config($name)) === null) {
  			throw new ConfigException("Configuration `{$name}` has not been defined.");
  		}
  		$filter = function($self, $params) use ($name) {
  			$user = $params['user'];
  			$request = $params['request'];
  			$options = $params['options'];
  			return $self::adapter($name)->check($user, $request, $options);
  		};
  		$params = compact('user', 'request', 'options');
  		return static::_filter(__FUNCTION__, $params, $filter, (array) $config['filters']);
  	}
code_tokens: public static function check ( $ name , $ user , $ request , $ options = [ ] ) { if ( ( $ config = static :: _config ( $ name ) ) === null ) { throw new ConfigException ( "Configuration `{$name}` has not been defined." ) ; } $ filter = function ( $ self , $ params ) use ( $ name ) { $ user = $ params [ 'user' ] ; $ request = $ params [ 'request' ] ; $ options = $ params [ 'options' ] ; return $ self :: adapter ( $ name ) -> check ( $ user , $ request , $ options ) ; } ; $ params = compact ( 'user' , 'request' , 'options' ) ; return static :: _filter ( __FUNCTION__ , $ params , $ filter , ( array ) $ config [ 'filters' ] ) ; }
docstring: Performs an access check.
  
  @param string $name The name of the adapter to check against.
  @param mixed $user The user data array or a user instance.
  @param action\Request $request A `Request` instace.
  @param array $options An array of options.
  @return boolean `true` if access is granted, `false otherwise`.
docstring_tokens: Performs an access check .