src/mako/application/cli/commands/cache/Command.php
protected function checkConfigurationExistence(string $configuration): bool
	{
		$configurations = array_keys($this->config->get('cache.configurations'));

		if(!in_array($configuration, $configurations))
		{
			$message = 'The [ ' . $configuration . ' ] configuration does not exist.';

			if(($suggestion = $this->suggest($configuration, $configurations)) !== null)
			{
				$message .= ' Did you mean [ ' . $suggestion . ' ]?';
			}

			$this->error($message);

			return false;
		}

		return true;
	}
protected function checkConfigurationExistence(string $configuration): bool
	{
		$configurations = array_keys($this->config->get('cache.configurations'));

		if(!in_array($configuration, $configurations))
		{
			$message = 'The [ ' . $configuration . ' ] configuration does not exist.';

			if(($suggestion = $this->suggest($configuration, $configurations)) !== null)
			{
				$message .= ' Did you mean [ ' . $suggestion . ' ]?';
			}

			$this->error($message);

			return false;
		}

		return true;
	}
protected function checkConfigurationExistence ( string $ configuration ) : bool { $ configurations = array_keys ( $ this -> config -> get ( 'cache.configurations' ) ) ; if ( ! in_array ( $ configuration , $ configurations ) ) { $ message = 'The [ ' . $ configuration . ' ] configuration does not exist.' ; if ( ( $ suggestion = $ this -> suggest ( $ configuration , $ configurations ) ) !== null ) { $ message .= ' Did you mean [ ' . $ suggestion . ' ]?' ; } $ this -> error ( $ message ) ; return false ; } return true ; }
Checks if the configuration exists.

@param  string $configuration Configuration name
@return bool
Checks if the configuration exists .