Merge pull request #2236 from fabian/patch-1
Documentation fixes for composer-plugin typepull/2245/head
commit
7065330c2e
|
@ -72,7 +72,7 @@ Example:
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "phpdocumentor/template-installer-plugin",
|
"name": "phpdocumentor/template-installer-plugin",
|
||||||
"type": "composer-installer-plugin",
|
"type": "composer-plugin",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {"phpDocumentor\\Composer": "src/"}
|
"psr-0": {"phpDocumentor\\Composer": "src/"}
|
||||||
|
@ -97,7 +97,7 @@ Example:
|
||||||
|
|
||||||
use Composer\Composer;
|
use Composer\Composer;
|
||||||
use Composer\IO\IOInterface;
|
use Composer\IO\IOInterface;
|
||||||
use Composer\Plugin\PluginInterface
|
use Composer\Plugin\PluginInterface;
|
||||||
|
|
||||||
class TemplateInstallerPlugin implements PluginInterface
|
class TemplateInstallerPlugin implements PluginInterface
|
||||||
{
|
{
|
||||||
|
@ -145,7 +145,7 @@ Example:
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public function getInstallPath(PackageInterface $package)
|
public function getPackageBasePath(PackageInterface $package)
|
||||||
{
|
{
|
||||||
$prefix = substr($package->getPrettyName(), 0, 23);
|
$prefix = substr($package->getPrettyName(), 0, 23);
|
||||||
if ('phpdocumentor/template-' !== $prefix) {
|
if ('phpdocumentor/template-' !== $prefix) {
|
||||||
|
|
Loading…
Reference in New Issue