Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Remove support for servicemanager and eventmanager v2 #211

Merged
merged 7 commits into from
Mar 10, 2017

Conversation

snapshotpl
Copy link
Contributor

@snapshotpl snapshotpl commented Dec 22, 2016

zend-servicemanager v2 support is dropped in v3 so we can remove tone of code...

@snapshotpl
Copy link
Contributor Author

... and also zend-eventmanager v2.

@snapshotpl snapshotpl changed the title WIP: Remove support for servicemanager v2 Remove support for servicemanager and eventmanager v2 Dec 22, 2016
@snapshotpl snapshotpl changed the base branch from master to develop December 22, 2016 20:50
Copy link
Member

@Xerkus Xerkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff, however there are couple BC concerns.

{
$r = new ReflectionClass(ServiceLocatorInterface::class);
if ($r->hasMethod('build')) {
$this->injectV3Aliases();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

breaking change, high chance someone still uses those compatibility aliases

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Xerkus you have right. That's why I add aliases into $defaultServiceConfig property (above)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed

*
* @return void
*/
private function injectV3Aliases()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

breaking change, high chance someone still uses those compatibility aliases

@Xerkus Xerkus merged commit 5d9cdd4 into zendframework:develop Mar 10, 2017
@Xerkus Xerkus added this to the 3.1.0 milestone Mar 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants