فهرست منبع

Use getPackageBasePath instead of getInstallPath

As LibraryInstaller uses getPackageBasePath for uninstall: https://github.com/composer/composer/blob/master/src/Composer/Installer/LibraryInstaller.php#L126
Fabian Vogler 11 سال پیش
والد
کامیت
7b43d4909c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      doc/articles/custom-installers.md

+ 1 - 1
doc/articles/custom-installers.md

@@ -145,7 +145,7 @@ Example:
         /**
          * {@inheritDoc}
          */
-        public function getInstallPath(PackageInterface $package)
+        public function getPackageBasePath(PackageInterface $package)
         {
             $prefix = substr($package->getPrettyName(), 0, 23);
             if ('phpdocumentor/template-' !== $prefix) {