/** * @return \PHPCrystal\PHPCrystal\Component\Package\Config */ public function getMergedConfig() { $originPkgInstance = Metadriver::getOwnerInstance($this); $mergedConfig = clone $originPkgInstance->getConfig(); $originPkgDotName = $originPkgInstance->getComposerName(true); $appConfig = $this->getApplication()->getConfig(); $mergedConfig->merge($appConfig); return $mergedConfig; }
/** * @return string */ public function getName() { $ownerInstance = Metadriver::getOwnerInstance($this); $fullName = $ownerInstance->getComposerName(true) . '.' . $this->getShortName(); return $fullName; }
/** * @return bool */ protected function skipAction($action) { return $this->getApplication()->getCoreExtension() === Metadriver::getOwnerInstance($action) ? false : true; }