Skip to content

Commit

Permalink
Add generate proxy message in verbose mode, fix file name in message
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed Jul 12, 2017
1 parent 9b474c7 commit 13524cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions OverloadClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ 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'];

$message = '<info>' . $infos['original-file'] . '</info>';
$message .= ' is overloaded by <comment>' . $infos['overload-file'] . '</comment>';
$event->getIO()->write($message, true, IOInterface::VERBOSE);
}
}
}
Expand Down Expand Up @@ -154,7 +154,7 @@ protected static function generateProxy($cacheDir, $fullyQualifiedClassName, $fi
file_put_contents($overloadedFilePath, $php);

$io->write(
'<info>' . $filePath . '</info> is overloaded by <comment>' . $overloadedFilePath . '</comment>',
'Generate proxy for <info>' . $fullyQualifiedClassName . '</info> in <comment>' . $overloadedFilePath . '</comment>',
true,
IOInterface::VERBOSE
);
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.1-green.svg)](https://github.com/steevanb/composer-overload-class/tree/1.3.1)
[![version](https://img.shields.io/badge/version-1.3.2-green.svg)](https://github.com/steevanb/composer-overload-class/tree/1.3.2)
[![composer](https://img.shields.io/badge/composer-^1.0-blue.svg)](https://getcomposer.org)
![Lines](https://img.shields.io/badge/code%20lines-503-green.svg)
![Lines](https://img.shields.io/badge/code%20lines-508-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
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### [1.3.2](../../compare/1.3.1...1.3.2) (2017-07-12)

- Add _Generate proxy for Foo in Bar_ message in verbose mode, when _duplicate-original-file_ is not set or set to _true_
- Fix file name in in verbose mode

### [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_
Expand Down

0 comments on commit 13524cd

Please sign in to comment.