Skip to content

Commit

Permalink
Fixed a typo in a method name: "instanciate" -> "instantiate"
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Apr 14, 2015
1 parent 8f61131 commit 5a11343
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ protected function showAction()
*/
protected function newAction()
{
$item = $this->instanciateNewEntity();
$item = $this->instantiateNewEntity();

$fields = $fields = $this->entity['new']['fields'];
$newForm = $this->createNewForm($item, $fields);
Expand Down Expand Up @@ -320,16 +320,17 @@ protected function ajaxEdit()

return new Response((string) $newValue);
}

/**
* Creates a new object of the current managed entity.
* This method is mostly here for override convenience, because it allows
* the user to use his own method to customize the entity instanciation.
*
*
* @return object
*/
protected function instanciateNewEntity() {
protected function instantiateNewEntity() {
$entityFullyQualifiedClassName = $this->entity['class'];

return new $entityFullyQualifiedClassName();
}

Expand Down

0 comments on commit 5a11343

Please sign in to comment.