Skip to content

Commit

Permalink
Update DiscoverClasses.php
Browse files Browse the repository at this point in the history
  • Loading branch information
daycry committed Aug 25, 2022
1 parent 5112890 commit f534a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/DiscoverClasses.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function run(array $params)
$methods = $this->_getMethodsFromCLass($class);

foreach ($methods as $key => $value) {
if ($value[0] == '_') {
if ($value[0] == '_' || $value == 'initController') {
unset($methods[$key]);
}
}
Expand Down

0 comments on commit f534a6f

Please sign in to comment.