Skip to content

Commit

Permalink
Revert "PSR-4 Autoloader に定義済みのため不要"
Browse files Browse the repository at this point in the history
This reverts commit 6ee0e69.
  • Loading branch information
nanasess committed Jul 31, 2018
1 parent eef3baa commit 900683f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Eccube/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public function registerBundles()
*/
public function boot()
{
// Symfonyがsrc/Eccube/Entity以下を読み込む前にapp/proxy/entity以下をロードする
$this->loadEntityProxies();

parent::boot();

// DateTime/DateTimeTzのタイムゾーンを設定.
Expand Down Expand Up @@ -246,4 +249,11 @@ protected function addEntityExtensionPass(ContainerBuilder $container)
}
}
}

protected function loadEntityProxies()
{
foreach (glob(__DIR__.'/../../app/proxy/entity/*.php') as $file) {
require_once $file;
}
}
}

0 comments on commit 900683f

Please sign in to comment.