Ouzo\Routing\RouteRule::getExcept PHP Method

getExcept() public method

public getExcept ( )
    public function getExcept()
    {
        return Arrays::getValue($this->options, 'except', array());
    }

Usage Example

Esempio n. 1
0
 private function _printExceptIfExists(RouteRule $rule, $table)
 {
     $except = $rule->getExcept();
     if ($except) {
         $table->addRow(array('', '', '  <info>except:</info>', ''));
         Arrays::map($except, function ($except) use($table) {
             $table->addRow(array('', '', '    ' . $except, ''));
             return $except;
         });
     }
 }