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
파일: Mock.php 프로젝트: EHER/chegamos
 /**
  * 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
파일: Mock.php 프로젝트: fedeisas/lithium
 /**
  * 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
파일: Test.php 프로젝트: WarToaster/HangOn
 /**
  * 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
파일: Test.php 프로젝트: EHER/monopolis
 /**
  * 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}";
 }