Skip to content

Commit

Permalink
[framework]CustomerFileNotFoundException now checks existence of App\…
Browse files Browse the repository at this point in the history
…Environment so it is working correctly on splited packages (#3599)
  • Loading branch information
TomasLudvik authored Nov 15, 2024
1 parent f8ff964 commit 1ab63f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CustomerFileNotFoundException extends CustomerFileException
*/
public function __construct($message = '', ?Exception $previous = null)
{
$isDev = Environment::getEnvironment() === EnvironmentType::DEVELOPMENT;
$isDev = class_exists('App\Environment') && Environment::getEnvironment() === EnvironmentType::DEVELOPMENT;

if (!$isDev) {
throw new NotFoundHttpException($message, $previous, 0, ['X-Accel-Redirect' => '@storefront']);
Expand Down

0 comments on commit 1ab63f8

Please sign in to comment.