<?php
/**
* Short description for the file.
*
* @author Komma <support@komma.pro>
* @copyright (c) 2012-2015, Komma Mediadesign
*/
namespace Komma\Jobs;
use Illuminate\Foundation\Composer;
class JobComposer
{
private $service;
public function __construct(JobService $service)
{
$this->service = $service;
}
public function compose($view)
{
$view->with(['jobCounter'=> $this->service->countActiveJobs()]);
}
}