Skip to content

Commit

Permalink
[ResourceBundle, Pimcore] add force-loading of classes, this fixes a …
Browse files Browse the repository at this point in the history
…rare case bug where classes are created but not yet loaded.
  • Loading branch information
dpfaffenbauer committed Nov 27, 2017
1 parent 376c073 commit 5645b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CoreShop/Component/Pimcore/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function forceLoadBrick($brickName)
protected static function loadClass($fileName, $className)
{
if (file_exists($fileName) && !class_exists($className)) {
require_once $className;
require_once $fileName;
}
}

Expand Down

0 comments on commit 5645b90

Please sign in to comment.