Skip to content

Commit

Permalink
removing useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionut Tanasa authored and Ionut Tanasa committed Jun 27, 2016
1 parent e67ad08 commit 4dfae5a
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/Prettus/Repository/Generators/ControllerGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public function getReplacements()
'singular' => $this->getSingularName(),
'validator' => $this->getValidator(),
'repository' => $this->getRepository(),
'manager' => $this->getManager(),
'appname' => $this->getAppNamespace(),
]);
}
Expand All @@ -106,24 +105,6 @@ public function getSingularName()
return str_singular(lcfirst(ucwords($this->getClass())));
}

/**
* Gets manager full class name
*
* @return string
*/
public function getManager()
{
$managerGenerator = new ManagerGenerator([
'name' => $this->name,
]);

$manager = $managerGenerator->getRootNamespace() . '\\' . $managerGenerator->getName();

return 'use ' . str_replace([
"\\",
'/'
], '\\', $manager) . 'Manager;';
}
/**
* Gets validator full class name
*
Expand Down

0 comments on commit 4dfae5a

Please sign in to comment.