Skip to content

Commit

Permalink
Remove method
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Sep 1, 2014
1 parent aac56e4 commit b319d4d
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions src/Way/Generators/Commands/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,28 +70,14 @@ public function fire()
}

/**
* Get the full namespace name by type and suffix.
* Get the full namespace.
*
* @param string $type
* @param string $name
* @return string
*/
protected function getNamespaceWithSuffix($type, $name)
protected function getNamespace($type)
{
$suffix = $this->getNamespaceSuffix($name);

return trim($this->laravel['config']['namespaces.'.$type].$suffix, '\\');
}

/**
* Get the namespace suffix to be added to the root namespace.
*
* @param string $name
* @return string
*/
protected function getNamespaceSuffix($name)
{
return trim(implode('\\', array_slice(explode('\\', $name), 0, -1)), '\\');
return trim($this->laravel['config']['namespaces.'.$type], '\\');
}

/**
Expand Down

0 comments on commit b319d4d

Please sign in to comment.