diff --git a/OverloadClass.php b/OverloadClass.php index 8ca2f87..557204d 100644 --- a/OverloadClass.php +++ b/OverloadClass.php @@ -86,6 +86,10 @@ protected static function defineAutoloadFiles(Event $event) $infos['original-file'], $event->getIO() ); + } else { + $message = '' . $infos['original-file'] . ''; + $message .= ' is overloaded by ' . $infos['overload-file'] . ''; + $event->getIO()->write($message, true, IOInterface::VERBOSE); } $autoload['files'][$className] = $infos['overload-file']; } diff --git a/README.md b/README.md index fbf8c01..6f0c936 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -[![version](https://img.shields.io/badge/version-1.3.0-green.svg)](https://github.com/steevanb/composer-overload-class/tree/1.3.0) +[![version](https://img.shields.io/badge/version-1.3.1-green.svg)](https://github.com/steevanb/composer-overload-class/tree/1.3.1) [![composer](https://img.shields.io/badge/composer-^1.0-blue.svg)](https://getcomposer.org) -![Lines](https://img.shields.io/badge/code%20lines-495-green.svg) +![Lines](https://img.shields.io/badge/code%20lines-503-green.svg) ![Total Downloads](https://poser.pugx.org/steevanb/composer-overload-class/downloads) [![SensionLabsInsight](https://img.shields.io/badge/SensionLabsInsight-platinum-brightgreen.svg)](https://insight.sensiolabs.com/projects/a753e540-2863-444f-a174-d743ca475566/analyses/16) [![Scrutinizer](https://scrutinizer-ci.com/g/steevanb/composer-overload-class/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/steevanb/composer-overload-class/) diff --git a/changelog.md b/changelog.md index c5a8101..c7c9447 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +### [1.3.1](../../compare/1.3.0...1.3.1) (2017-07-12) + +- Add _Foo is overloaded by Bar_ message in verbose mode, when _duplicate-original-file_ is set to _false_ + ### [1.3.0](../../compare/1.2.0...1.3.0) (2017-07-12) - Use _files_ instead of _classmap_ Composer configuration to overload classes