Skip to content
Permalink
Browse files

4006 serialize (#4013)

* Add new arguments key and target. Make it possible use not only default target for db connections

* Replace serialize/unserialize as not supported
  • Loading branch information...
LOBsTerr authored and enzolutions committed Jul 3, 2019
1 parent 04f43a7 commit fca95727337ce1f9636abddec10b9d065aa18685
Showing with 23 additions and 1 deletion.
  1. +20 −0 src/Extension/Extension.php
  2. +3 −1 src/Extension/Manager.php
@@ -160,4 +160,24 @@ public function getJsTestsPath($fullPath = false)
{
return $this->getTestsSourcePath($fullPath) . '/FunctionalJavascript';
}
/**
* @param BaseExtension $extension
*/
function loadFromParentObj(BaseExtension $extension)
{
$objValues = get_object_vars($extension);
foreach($objValues AS $key => $value)
{
$this->$key = $value;
}
}
/**
* @param $root
*/
function setRoot($root) {
$this->root = $root;
}
}
@@ -311,7 +311,9 @@ private function createExtension($extension)
$extension->getPathname(),
$extension->getExtensionFilename()
);
$consoleExtension->unserialize($extension->serialize());
$consoleExtension->loadFromParentObj($extension);
$consoleExtension->setRoot($this->appRoot);
return $consoleExtension;
}

0 comments on commit fca9572

Please sign in to comment.
You can’t perform that action at this time.