li3 create --template=controller Posts li3 create --template=model Posts
Наследование: extends lithium\console\Command
Пример #1
0
 /**
  * Get the namespace for the migration.
  *
  * @param string $request
  * @param array|string $options
  * @return string
  */
 protected function _namespace($request, $options = array())
 {
     return parent::_namespace($request, array('prepend' => 'resources.'));
 }
Пример #2
0
 /**
  * Get the parent for the mock.
  *
  * @param string $request
  * @return string
  */
 protected function _parent($request)
 {
     $namespace = parent::_namespace($request);
     $class = $request->action;
     return "\\{$namespace}\\{$class}";
 }
Пример #3
0
 /**
  * Get the parent for the mock.
  *
  * @param string $request
  * @return string
  */
 protected function _parent($request)
 {
     $namespace = parent::_namespace($request);
     $class = Inflector::camelize($request->action);
     return "\\{$namespace}\\{$class}";
 }
Пример #4
0
 /**
  * Get the class used by the test case.
  *
  * @param string $request
  * @return string
  */
 protected function _use($request)
 {
     return parent::_namespace($request) . '\\' . $this->_name($request);
 }
Пример #5
0
 /**
  * Get the class used by the test case.
  *
  * @param string $request
  * @return string
  */
 protected function _use($request)
 {
     $namespace = parent::_namespace($request);
     $name = $this->_name($request);
     return "\\{$namespace}\\{$name}";
 }