Skip to content

Commit

Permalink
Use isMainRequest to prevent deprecation problems (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalheidmann committed Apr 3, 2023
1 parent 063f603 commit 977b1a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ToolboxBundle/Builder/BrickConfigBuilder.php
Expand Up @@ -293,9 +293,9 @@ private function checkColumnAdjusterField(string $brickId, ?string $tab, array $
private function buildStore($type, $config): array
{
$storeValues = [];
if (isset($config['store']) && !is_null($config['store'])) {
if (isset($config['store'])) {
$storeValues = $config['store'];
} elseif (isset($config['store_provider']) && !is_null($config['store_provider'])) {
} elseif (isset($config['store_provider'])) {
$storeProvider = $this->storeProvider->get($config['store_provider']);
$storeValues = $storeProvider->getValues();
}
Expand Down
Expand Up @@ -29,7 +29,7 @@ public function onKernelResponse(ResponseEvent $event): void
}

$request = $event->getRequest();
if (!$event->isMasterRequest()) {
if (!$event->isMainRequest()) {
return;
}

Expand Down

0 comments on commit 977b1a2

Please sign in to comment.