Skip to content

Commit

Permalink
Add Foo is overloaded by Bar message in verbose mode, when duplicate…
Browse files Browse the repository at this point in the history
…-original-file is set to false
  • Loading branch information
steevanb committed Jul 12, 2017
1 parent bc944e0 commit 9b474c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions OverloadClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ protected static function defineAutoloadFiles(Event $event)
$infos['original-file'],
$event->getIO()
);
} else {
$message = '<info>' . $infos['original-file'] . '</info>';
$message .= ' is overloaded by <comment>' . $infos['overload-file'] . '</comment>';
$event->getIO()->write($message, true, IOInterface::VERBOSE);
}
$autoload['files'][$className] = $infos['overload-file'];
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/)
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9b474c7

Please sign in to comment.