Skip to content

Commit 13524cd

Browse files
committed
Add generate proxy message in verbose mode, fix file name in message
1 parent 9b474c7 commit 13524cd

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

OverloadClass.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ protected static function defineAutoloadFiles(Event $event)
8686
$infos['original-file'],
8787
$event->getIO()
8888
);
89-
} else {
90-
$message = '<info>' . $infos['original-file'] . '</info>';
91-
$message .= ' is overloaded by <comment>' . $infos['overload-file'] . '</comment>';
92-
$event->getIO()->write($message, true, IOInterface::VERBOSE);
9389
}
9490
$autoload['files'][$className] = $infos['overload-file'];
91+
92+
$message = '<info>' . $infos['original-file'] . '</info>';
93+
$message .= ' is overloaded by <comment>' . $infos['overload-file'] . '</comment>';
94+
$event->getIO()->write($message, true, IOInterface::VERBOSE);
9595
}
9696
}
9797
}
@@ -154,7 +154,7 @@ protected static function generateProxy($cacheDir, $fullyQualifiedClassName, $fi
154154
file_put_contents($overloadedFilePath, $php);
155155

156156
$io->write(
157-
'<info>' . $filePath . '</info> is overloaded by <comment>' . $overloadedFilePath . '</comment>',
157+
'Generate proxy for <info>' . $fullyQualifiedClassName . '</info> in <comment>' . $overloadedFilePath . '</comment>',
158158
true,
159159
IOInterface::VERBOSE
160160
);

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![version](https://img.shields.io/badge/version-1.3.1-green.svg)](https://github.com/steevanb/composer-overload-class/tree/1.3.1)
1+
[![version](https://img.shields.io/badge/version-1.3.2-green.svg)](https://github.com/steevanb/composer-overload-class/tree/1.3.2)
22
[![composer](https://img.shields.io/badge/composer-^1.0-blue.svg)](https://getcomposer.org)
3-
![Lines](https://img.shields.io/badge/code%20lines-503-green.svg)
3+
![Lines](https://img.shields.io/badge/code%20lines-508-green.svg)
44
![Total Downloads](https://poser.pugx.org/steevanb/composer-overload-class/downloads)
55
[![SensionLabsInsight](https://img.shields.io/badge/SensionLabsInsight-platinum-brightgreen.svg)](https://insight.sensiolabs.com/projects/a753e540-2863-444f-a174-d743ca475566/analyses/16)
66
[![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/)

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### [1.3.2](../../compare/1.3.1...1.3.2) (2017-07-12)
2+
3+
- Add _Generate proxy for Foo in Bar_ message in verbose mode, when _duplicate-original-file_ is not set or set to _true_
4+
- Fix file name in in verbose mode
5+
16
### [1.3.1](../../compare/1.3.0...1.3.1) (2017-07-12)
27

38
- Add _Foo is overloaded by Bar_ message in verbose mode, when _duplicate-original-file_ is set to _false_

0 commit comments

Comments
 (0)