Rename the service to JobOrderManager. #204
This commit is contained in:
parent
24715196e5
commit
4e711ca2c3
2 changed files with 6 additions and 6 deletions
|
|
@ -7,9 +7,9 @@ use Symfony\Component\Console\Input\InputArgument;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
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()
|
protected function configure()
|
||||||
{
|
{
|
||||||
|
|
@ -19,9 +19,9 @@ class TestJobOrderFulfillCommand extends Command
|
||||||
->addArgument('job_order_id', InputArgument::REQUIRED, 'Job Order ID');
|
->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();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
@ -30,7 +30,7 @@ class TestJobOrderFulfillCommand extends Command
|
||||||
{
|
{
|
||||||
$jo_id = $input->getArgument('job_order_id');
|
$jo_id = $input->getArgument('job_order_id');
|
||||||
|
|
||||||
$result = $this->fulfill_jo->fulfillJobOrder($jo_id);
|
$result = $this->jo_manager->fulfillJobOrder($jo_id);
|
||||||
|
|
||||||
if ($result)
|
if ($result)
|
||||||
echo "Job Order successfully updated" . "\n";
|
echo "Job Order successfully updated" . "\n";
|
||||||
|
|
@ -8,7 +8,7 @@ use App\Ramcar\ServiceType;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
|
|
||||||
class JobOrderFulfill
|
class JobOrderManager
|
||||||
{
|
{
|
||||||
protected $em;
|
protected $em;
|
||||||
|
|
||||||
Loading…
Reference in a new issue