for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Task\TaskBundle\EventListener;
use Symfony\Component\EventDispatcher\Event;
use Task\SchedulerInterface;
/**
* Listens to event and run scheduled tasks.
*
* @author @wachterjohannes <[email protected]>
*/
class RunListener
{
* @var SchedulerInterface
private $scheduler;
public function __construct(SchedulerInterface $scheduler)
$this->scheduler = $scheduler;
}
* Run scheduled tasks.
* @param Event $event
public function run(Event $event)
$event
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->scheduler->run();
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.