Skip to content

Commit

Permalink
minor #68 [doc] fixes overriden methods visibility (hhamon)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

[doc] fixes overriden methods visibility

Commits
-------

0ad8c1a [doc] fixes overriden methods visibility
  • Loading branch information
javiereguiluz committed Jan 23, 2015
2 parents ce8af97 + 0ad8c1a commit 280d697
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,14 @@ class AdminController extends EasyAdminController
return parent::indexAction($request);
}

public function prepareEditEntityForPersist($entity)
protected function prepareEditEntityForPersist($entity)
{
if ($entity instanceof Article) {
return $this->updateSlug($entity);
}
}
public function prepareNewEntityForPersist($entity)

protected function prepareNewEntityForPersist($entity)
{
if ($entity instanceof Article) {
return $this->updateSlug($entity);
Expand Down

0 comments on commit 280d697

Please sign in to comment.