function ConjunctionInterceptor::invokeAssertions

Parameters

string $path:

string $command:

Return value

bool

1 call to ConjunctionInterceptor::invokeAssertions()
ConjunctionInterceptor::assert in misc/typo3/phar-stream-wrapper/src/Interceptor/ConjunctionInterceptor.php
Executes assertions based on all contained assertions.

File

misc/typo3/phar-stream-wrapper/src/Interceptor/ConjunctionInterceptor.php, line 75

Class

ConjunctionInterceptor

Namespace

TYPO3\PharStreamWrapper\Interceptor

Code

private function invokeAssertions($path, $command) {
    try {
        foreach ($this->assertions as $assertion) {
            if (!$assertion->assert($path, $command)) {
                return false;
            }
        }
    } catch (Exception $exception) {
        return false;
    }
    return true;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.