Skip to content

Commit

Permalink
Contracts event dispatcher event (#696)
Browse files Browse the repository at this point in the history
* Use Symfony\Contracts\EventDispatcher\Event instead of deprecated Symfony\Component\EventDispatcher\Event
fixes #695
  • Loading branch information
Markus Kalkbrenner authored Sep 5, 2019
1 parent 4adad59 commit 7886cef
Show file tree
Hide file tree
Showing 20 changed files with 19 additions and 19 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [5.1.1]
### Fixed
- PHP 7.1 compatibility issue: date constants are not available as part of DateTimeInterface before PHP 7.2.0
- Use Symfony\Contracts\EventDispatcher\Event instead of deprecated Symfony\Component\EventDispatcher\Event

## [5.1.0]
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.1",
"php": "^7.1.3",
"symfony/event-dispatcher": "^4.3",
"symfony/cache": "^3.1 || ^4.0",
"ext-json": "*"
Expand Down
1 change: 0 additions & 1 deletion src/Core/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
use Solarium\QueryType\Terms\Result as TermsResult;
use Solarium\QueryType\Update\Query\Query as UpdateQuery;
use Solarium\QueryType\Update\Result as UpdateResult;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Event/PostCreateQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Solarium\Core\Event;

use Solarium\Core\Query\QueryInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PostCreateQuery event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Event/PostCreateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Solarium\Core\Client\Request;
use Solarium\Core\Query\QueryInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PostCreateRequest event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Event/PostCreateResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Solarium\Core\Client\Response;
use Solarium\Core\Query\QueryInterface;
use Solarium\Core\Query\Result\ResultInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PostCreateResult event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Event/PostExecute.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Solarium\Core\Query\QueryInterface;
use Solarium\Core\Query\Result\ResultInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PostExecute event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Event/PostExecuteRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Solarium\Core\Client\Endpoint;
use Solarium\Core\Client\Request;
use Solarium\Core\Client\Response;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PostExecuteRequest event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Event/PreCreateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Solarium\Core\Client\Request;
use Solarium\Core\Query\QueryInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PreCreateRequest event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Event/PreCreateResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Solarium\Core\Client\Response;
use Solarium\Core\Query\QueryInterface;
use Solarium\Core\Query\Result\ResultInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PreCreateResult event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Event/PreExecute.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Solarium\Core\Query\QueryInterface;
use Solarium\Core\Query\Result\ResultInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PostExecute event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Event/PreExecuteRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Solarium\Core\Client\Endpoint;
use Solarium\Core\Client\Request;
use Solarium\Core\Client\Response;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PreExecuteRequest event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/BufferedAdd/Event/AddDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Solarium\Plugin\BufferedAdd\Event;

use Solarium\Core\Query\DocumentInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* AddDocument event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/BufferedAdd/Event/PostCommit.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Solarium\Plugin\BufferedAdd\Event;

use Solarium\QueryType\Update\Result;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PostCommit event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/BufferedAdd/Event/PostFlush.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Solarium\Core\Query\DocumentInterface;
use Solarium\QueryType\Update\Result;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PostFlush event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/BufferedAdd/Event/PreCommit.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Solarium\Plugin\BufferedAdd\Event;

use Solarium\Core\Query\DocumentInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PreCommit event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/BufferedAdd/Event/PreFlush.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Solarium\Plugin\BufferedAdd\Event;

use Solarium\Core\Query\DocumentInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* PreFlush event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Loadbalancer/Event/EndpointFailure.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Solarium\Core\Client\Endpoint;
use Solarium\Exception\HttpException;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* EndpointFailure event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/ParallelExecution/Event/ExecuteEnd.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Solarium\Plugin\ParallelExecution\Event;

use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* ExecuteEnd event, see Events for details.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/ParallelExecution/Event/ExecuteStart.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Solarium\Plugin\ParallelExecution\Event;

use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

/**
* ExecuteStart event, see Events for details.
Expand Down

0 comments on commit 7886cef

Please sign in to comment.