Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dp-ifacesoft committed Mar 17, 2015
1 parent db51f3b commit 51e71cb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions Source/Ice/Class/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ public function generate($data)
{
$namespace = Object::getNamespace($this->_baseClass, $this->_class);

$module = Module::getInstance(Object::getModuleAlias($this->_class));

$path = $module->get(Module::SOURCE_DIR);
$path = Module::SOURCE_DIR;

if ($namespace) {
$path .= 'Model/';
Expand Down
4 changes: 1 addition & 3 deletions Source/Ice/Code/Generator/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ public function generate($class, $data, $force = false)
// $class = Object::getClass(Action::getClass(), $data);
$namespace = Object::getNamespace(Action::getClass(), $class);

$module = Module::getInstance(Object::getModuleAlias($this->_class));

$path = $module->get(Module::SOURCE_DIR);
$path = Module::SOURCE_DIR;

if ($namespace) {
$path .= 'Class/';
Expand Down
4 changes: 1 addition & 3 deletions Source/Ice/Code/Generator/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ public function generate($class, $data, $force = false)

$fieldNames = Arrays::column($data['columns'], 'fieldName');

$module = Module::getInstance(Object::getModuleAlias($class));

$path = $module->get(Module::SOURCE_DIR);
$path = Module::SOURCE_DIR;

if ($namespace) {
$path .= 'Model/';
Expand Down
4 changes: 1 addition & 3 deletions Source/Ice/Code/Generator/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ public function generate($class, $data, $force = false)
// $class = Object::getClass(Core_Validator::getClass(), $data);
$namespace = Object::getNamespace(Core_Validator::getClass(), $class);

$module = Module::getInstance(Object::getModuleAlias($class));

$path = $module->get(Module::SOURCE_DIR);
$path = Module::SOURCE_DIR;

if ($namespace) {
$path .= 'Class/';
Expand Down

0 comments on commit 51e71cb

Please sign in to comment.