Nette\DI\Container::getMethodName PHP Метод

getMethodName() публичный статический Метод

public static getMethodName ( $name )
    public static function getMethodName($name)
    {
        $uname = ucfirst($name);
        return 'createService' . ((string) $name === $uname ? '__' : '') . str_replace('.', '__', $uname);
    }

Usage Example

Пример #1
0
 /**
  * @return object
  */
 public function __call($name, $args)
 {
     if (substr($name, 0, 6) === 'create') {
         return call_user_func_array(array($this->container, Container::getMethodName($this->namespace . substr($name, 6), false)), $args);
     }
     throw new Nette\NotSupportedException();
 }
All Usage Examples Of Nette\DI\Container::getMethodName