function Behavior::assertCommand

1 call to Behavior::assertCommand()
Behavior::assert in misc/typo3/phar-stream-wrapper/src/Behavior.php

File

misc/typo3/phar-stream-wrapper/src/Behavior.php, line 93

Class

Behavior

Namespace

TYPO3\PharStreamWrapper

Code

private function assertCommand($command) {
    if (in_array($command, $this->availableCommands, true)) {
        return;
    }
    throw new \LogicException(sprintf('Unknown command "%s"', $command), 1535189882);
}

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