Пример #1
0
 /**
  * @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;
 }
Пример #2
0
 public function onPostDispatch()
 {
     Facade\Metadriver::save();
 }
Пример #3
0
 public function getActions()
 {
     return Metadriver::getPackageActions($this);
 }
Пример #4
0
 /**
  * @return string
  */
 public function getName()
 {
     $ownerInstance = Metadriver::getOwnerInstance($this);
     $fullName = $ownerInstance->getComposerName(true) . '.' . $this->getShortName();
     return $fullName;
 }
Пример #5
0
 /**
  * @return bool
  */
 protected function skipAction($action)
 {
     return $this->getApplication()->getCoreExtension() === Metadriver::getOwnerInstance($action) ? false : true;
 }