li3 create --template=controller Posts li3 create --template=model Posts
Inheritance: extends lithium\console\Command
コード例 #1
0
ファイル: Migration.php プロジェクト: djordje/li3_migrations
 /**
  * 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}";
 }