Skip to content

Commit ae60699

Browse files
committed
Deprecate "autoload.exclude-from-files" support
Added: - Warning against using "autoload.exclude-from-files" and to use "extra.exclude…" instead
1 parent 658b03e commit ae60699

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ExcludeFilePlugin.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ class ExcludeFilePlugin implements
3131
*/
3232
private $composer;
3333

34+
/**
35+
* @var IOInterface
36+
*/
37+
private $io;
38+
3439
/**
3540
* Apply plugin modifications to Composer.
3641
*
@@ -41,6 +46,7 @@ class ExcludeFilePlugin implements
4146
public function activate(Composer $composer, IOInterface $io)
4247
{
4348
$this->composer = $composer;
49+
$this->io = $io;
4450
}
4551

4652
/**
@@ -182,6 +188,7 @@ private function getExcludedFiles(PackageInterface $package)
182188

183189
// Skip misconfigured or empty packages
184190
if (isset($autoload[$type]) && is_array($autoload[$type])) {
191+
$this->io->writeError('<warning>Using the "'.$type.'" property from "autoload" is deprecated and will be removed in mcaskill/composer-exclude-files v2.0. Use the property from "extra" instead.</warning>');
185192
return $autoload[$type];
186193
}
187194

0 commit comments

Comments
 (0)