concrete/src/Install/PreconditionService.php
public function getPreconditionByHandle($handle)
    {
        $list = $this->config->get('install.preconditions');
        if (!isset($list[$handle])) {
            throw new Exception(sprintf('Unable to find an install precondition with handle %s', $handle));
        }
        if (!$list[$handle]) {
            throw new Exception(sprintf('The precondition with handle %s is disabled', $handle));
        }
        $className = $list[$handle];
        $instance = $this->getPreconditionByClassName($className);

        return $instance;
    }
public function getPreconditionByHandle($handle)
    {
        $list = $this->config->get('install.preconditions');
        if (!isset($list[$handle])) {
            throw new Exception(sprintf('Unable to find an install precondition with handle %s', $handle));
        }
        if (!$list[$handle]) {
            throw new Exception(sprintf('The precondition with handle %s is disabled', $handle));
        }
        $className = $list[$handle];
        $instance = $this->getPreconditionByClassName($className);

        return $instance;
    }
public function getPreconditionByHandle ( $ handle ) { $ list = $ this -> config -> get ( 'install.preconditions' ) ; if ( ! isset ( $ list [ $ handle ] ) ) { throw new Exception ( sprintf ( 'Unable to find an install precondition with handle %s' , $ handle ) ) ; } if ( ! $ list [ $ handle ] ) { throw new Exception ( sprintf ( 'The precondition with handle %s is disabled' , $ handle ) ) ; } $ className = $ list [ $ handle ] ; $ instance = $ this -> getPreconditionByClassName ( $ className ) ; return $ instance ; }
Get a precondition given its handle.

@param string $handle the precondition handle

@throws Exception

@return PreconditionInterface
Get a precondition given its handle .