Skip to content

Commit

Permalink
rename job contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark1Z committed Nov 27, 2019
1 parent 7d78ad3 commit f6b571e
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Base/InteractWithTimeTrait.php
Expand Up @@ -11,7 +11,7 @@
*
* @author Virchenko Maksim <muslim1992@gmail.com>
*
* @package SfCod\QueueBundle\JobContract
* @package SfCod\QueueBundle\Job
*/
trait InteractWithTimeTrait
{
Expand Down
2 changes: 1 addition & 1 deletion Base/JobInterface.php
Expand Up @@ -2,7 +2,7 @@

namespace SfCod\QueueBundle\Base;

use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;

/**
* Base interface for handlers
Expand Down
2 changes: 1 addition & 1 deletion Event/JobExceptionOccurredEvent.php
Expand Up @@ -3,7 +3,7 @@
namespace SfCod\QueueBundle\Event;

use Exception;
use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use Symfony\Component\EventDispatcher\Event;

/**
Expand Down
2 changes: 1 addition & 1 deletion Event/JobFailedEvent.php
Expand Up @@ -3,7 +3,7 @@
namespace SfCod\QueueBundle\Event;

use Exception;
use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use Symfony\Component\EventDispatcher\Event;

/**
Expand Down
2 changes: 1 addition & 1 deletion Event/JobProcessedEvent.php
Expand Up @@ -2,7 +2,7 @@

namespace SfCod\QueueBundle\Event;

use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use Symfony\Component\EventDispatcher\Event;

/**
Expand Down
2 changes: 1 addition & 1 deletion Event/JobProcessingEvent.php
Expand Up @@ -2,7 +2,7 @@

namespace SfCod\QueueBundle\Event;

use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use Symfony\Component\EventDispatcher\Event;

/**
Expand Down
2 changes: 1 addition & 1 deletion JobContract/JobContract.php → Job/JobContract.php
@@ -1,6 +1,6 @@
<?php

namespace SfCod\QueueBundle\JobContract;
namespace SfCod\QueueBundle\Job;

use Exception;
use SfCod\QueueBundle\Base\InteractWithTimeTrait;
Expand Down
@@ -1,6 +1,6 @@
<?php

namespace SfCod\QueueBundle\JobContract;
namespace SfCod\QueueBundle\Job;

/**
* Interface JobContract
Expand Down
4 changes: 2 additions & 2 deletions Queue/MongoQueue.php
Expand Up @@ -8,8 +8,8 @@
use SfCod\QueueBundle\Base\JobResolverInterface;
use SfCod\QueueBundle\Base\MongoDriverInterface;
use SfCod\QueueBundle\Entity\Job;
use SfCod\QueueBundle\JobContract\JobContract;
use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContract;
use SfCod\QueueBundle\Job\JobContractInterface;

/**
* Class MongoQueue
Expand Down
2 changes: 1 addition & 1 deletion Queue/QueueInterface.php
Expand Up @@ -2,7 +2,7 @@

namespace SfCod\QueueBundle\Queue;

use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;

/**
* Interface QueueInterface
Expand Down
2 changes: 1 addition & 1 deletion Service/JobProcess.php
Expand Up @@ -2,7 +2,7 @@

namespace SfCod\QueueBundle\Service;

use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use Symfony\Component\Process\Process;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/Data/TestJobContract.php
Expand Up @@ -3,7 +3,7 @@
namespace SfCod\QueueBundle\Tests\Data;

use SfCod\QueueBundle\Base\JobInterface;
use SfCod\QueueBundle\JobContract\JobContract;
use SfCod\QueueBundle\Job\JobContract;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/Event/JobExceptionOccurredEventTest.php
Expand Up @@ -5,7 +5,7 @@
use Exception;
use PHPUnit\Framework\TestCase;
use SfCod\QueueBundle\Event\JobExceptionOccurredEvent;
use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use Symfony\Component\EventDispatcher\Event;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/Event/JobFailedEventTest.php
Expand Up @@ -5,7 +5,7 @@
use Exception;
use PHPUnit\Framework\TestCase;
use SfCod\QueueBundle\Event\JobFailedEvent;
use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use Symfony\Component\EventDispatcher\Event;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/Event/JobProcessedEventTest.php
Expand Up @@ -4,7 +4,7 @@

use PHPUnit\Framework\TestCase;
use SfCod\QueueBundle\Event\JobProcessedEvent;
use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use Symfony\Component\EventDispatcher\Event;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/Event/JobProcessingEventTest.php
Expand Up @@ -4,7 +4,7 @@

use PHPUnit\Framework\TestCase;
use SfCod\QueueBundle\Event\JobProcessingEvent;
use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use Symfony\Component\EventDispatcher\Event;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/JobContract/JobContractTest.php
Expand Up @@ -7,7 +7,7 @@
use SfCod\QueueBundle\Base\JobInterface;
use SfCod\QueueBundle\Base\JobResolverInterface;
use SfCod\QueueBundle\Entity\Job;
use SfCod\QueueBundle\JobContract\JobContract;
use SfCod\QueueBundle\Job\JobContract;
use SfCod\QueueBundle\Queue\QueueInterface;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/Queue/MongoQueueTest.php
Expand Up @@ -8,7 +8,7 @@
use SfCod\QueueBundle\Base\JobResolverInterface;
use SfCod\QueueBundle\Base\MongoDriverInterface;
use SfCod\QueueBundle\Entity\Job;
use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use SfCod\QueueBundle\Queue\MongoQueue;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/Service/JobProcessTest.php
Expand Up @@ -3,7 +3,7 @@
namespace SfCod\QueueBundle\Tests\Service;

use PHPUnit\Framework\TestCase;
use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use SfCod\QueueBundle\Service\JobProcess;

/**
Expand Down
2 changes: 1 addition & 1 deletion Worker/Worker.php
Expand Up @@ -12,7 +12,7 @@
use SfCod\QueueBundle\Exception\MaxAttemptsExceededException;
use SfCod\QueueBundle\Failer\FailedJobProviderInterface;
use SfCod\QueueBundle\Handler\ExceptionHandlerInterface;
use SfCod\QueueBundle\JobContract\JobContractInterface;
use SfCod\QueueBundle\Job\JobContractInterface;
use SfCod\QueueBundle\Queue\QueueInterface;
use SfCod\QueueBundle\Service\JobProcess;
use SfCod\QueueBundle\Service\QueueManager;
Expand Down

0 comments on commit f6b571e

Please sign in to comment.