I use below code in my controller's constructor:
$this->beforeFilter(function()
{
Event::fire('clockwork.controller.start');
});
$this->afterFilter(function()
{
Event::fire('clockwork.controller.end');
});
there throw a exception:
Class xxx\xxx\Controllers\Posts does not have a method definition for beforeFilter