Skip to content

Commit 3079175

Browse files
committedApr 12, 2016
Fix bug in listener generation.
This prevents the framework from generating listeners for listeners that are defined in packages outside of the App namespace.
1 parent 6e9a6a2 commit 3079175

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎src/Illuminate/Foundation/Console/ListenerMakeCommand.php

+11
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,17 @@ protected function getStub()
8484
}
8585
}
8686

87+
/**
88+
* Determine if the class already exists.
89+
*
90+
* @param string $rawName
91+
* @return bool
92+
*/
93+
protected function alreadyExists($rawName)
94+
{
95+
return class_exists($rawName);
96+
}
97+
8798
/**
8899
* Get the default namespace for the class.
89100
*

0 commit comments

Comments
 (0)
Please sign in to comment.