You are here

private function ConjunctionInterceptor::invokeAssertions in Drupal 7

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;
}