Skip to content

Commit

Permalink
Update ModuleControllerAutoloader.php
Browse files Browse the repository at this point in the history
Fix path to Magento root in controller autoloader. This fixes issue when phpstan couldn't find controller file (when overwriting controllers)
  • Loading branch information
tmotyl authored Jun 13, 2023
1 parent 6934647 commit 5bea19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Autoload/Magento/ModuleControllerAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class ModuleControllerAutoloader
public function __construct(string $codePool, string $magentoRoot = null)
{
if (empty($magentoRoot)) {
$magentoRoot = \dirname(BP, 2);
$magentoRoot = BP;
}
$this->codePool = $codePool;
$this->magentoRoot = $magentoRoot;
Expand Down

0 comments on commit 5bea19f

Please sign in to comment.