Resolve "Set customer vehicle current battery" #1049

Merged
korina.cordero merged 3 commits from 204-set-customer-vehicle-current-battery into master 2019-05-27 02:06:47 +00:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit 4e711ca2c3 - Show all commits

View file

@ -7,9 +7,9 @@ use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use App\Service\JobOrderFulfill;
use App\Service\JobOrderManager;
class TestJobOrderFulfillCommand extends Command
class TestJobOrderManagerCommand extends Command
{
protected function configure()
{
@ -19,9 +19,9 @@ class TestJobOrderFulfillCommand extends Command
->addArgument('job_order_id', InputArgument::REQUIRED, 'Job Order ID');
}
public function __construct(JobOrderFulfill $fulfill_jo)
public function __construct(JobOrderManager $jo_manager)
{
$this->fulfill_jo = $fulfill_jo;
$this->jo_manager = $jo_manager;
parent::__construct();
}
@ -30,7 +30,7 @@ class TestJobOrderFulfillCommand extends Command
{
$jo_id = $input->getArgument('job_order_id');
$result = $this->fulfill_jo->fulfillJobOrder($jo_id);
$result = $this->jo_manager->fulfillJobOrder($jo_id);
if ($result)
echo "Job Order successfully updated" . "\n";

View file

@ -8,7 +8,7 @@ use App\Ramcar\ServiceType;
use Doctrine\ORM\EntityManagerInterface;
class JobOrderFulfill
class JobOrderManager
{
protected $em;