Skip to content

Commit

Permalink
Merge pull request #493 from FriendsOfCake/example-missing-interface
Browse files Browse the repository at this point in the history
Fixed incorrect class inheritance
  • Loading branch information
ADmad authored Mar 26, 2017
2 parents fe08651 + 0ed9119 commit 924d619
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/listeners/custom.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ Creating your own listener class is very similar to using a controller as a list
<?php
namespace App\Lib\Listeners;
use Cake\Event\EventListenerInterface;
use Cake\Event\Event;
use Crud\Listener\BaseListener;
class MyListener implements EventListenerInterface
class MyListener extends BaseListener
{
public function implementedEvents()
{
Expand All @@ -56,4 +56,4 @@ Creating your own listener class is very similar to using a controller as a list
{
Log::debug('Inside the listener!');
}
}
}

0 comments on commit 924d619

Please sign in to comment.