Пример #1
0
function b()
{
    return b::instance();
}
Пример #2
0
<?php

$a = \b::instance($d, null, !$d instanceof \E);
Пример #3
0
 public function test_instance()
 {
     $this->assertInstanceOf('\\bolt\\base', b::instance());
 }
Пример #4
0
 /**
  * paths
  */
 public function path($name, $value = null)
 {
     if (is_array($name)) {
         array_walk($name, function ($val, $key) {
             $this->path($key, $val);
         });
         return $this;
     } else {
         if ($value === null) {
             return array_key_exists($name, $this->_paths) ? $this->_paths[$name] : false;
         }
     }
     if (is_array($value)) {
         $this->_paths[$name] = array_map(function ($value) {
             return b::instance()->path($value);
         }, $value);
     } else {
         $this->_paths[$name] = b::instance()->path($value);
     }
     return $this;
 }