t;?php
namespace Easybook\Plugins;
&nbsp;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Easybook\Events\EasybookEvents as Events;
use Easybook\Events\BaseEvent;
&nbsp;
class TimerPlugin implements EventSubscriberInterface
{
    static public function getSubscribedEvents()
    {
        return array(
            Events::PRE_PUBLISH  =&gt; 'onStart',
            Events::POST_PUBLISH =&gt; 'onFinish',
        );
    }
&nbsp;
    public function onStart(BaseEvent $event)
    {
        $eve