Skip to content
Snippets Groups Projects
Commit 061604e3 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed options unset service locator bug.

parent 870b9d7e
No related merge requests found
......@@ -559,6 +559,17 @@ abstract class Options implements ServiceLocatorAwareInterface
return $this;
}
/**
* Unset the service locator.
*
* @return Params
*/
public function unsetServiceLocator()
{
$this->serviceLocator = null;
return $this;
}
/**
* Get the service locator.
*
......
......@@ -1511,7 +1511,7 @@ class Params implements ServiceLocatorAwareInterface
$this->serviceLocator = null;
$options = $this->getOptions();
if (method_exists($options, 'unsetServiceLocator')) {
$params->unsetServiceLocator();
$options->unsetServiceLocator();
}
return $this;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment