Skip to content

Commit

Permalink
Dao
Browse files Browse the repository at this point in the history
  • Loading branch information
mcop1 committed Jan 9, 2025
1 parent 66362b2 commit 5e71d40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CustomReport/Repository/CustomReportRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
namespace Pimcore\Bundle\StudioBackendBundle\CustomReport\Repository;

use Pimcore\Bundle\CustomReportsBundle\Tool\Config\Listing;
use Pimcore\Bundle\CustomReportsBundle\Tool\Config\Listing\Dao;
use Pimcore\Bundle\StudioBackendBundle\Security\Service\SecurityServiceInterface;
use Pimcore\Model\User;

Expand All @@ -33,7 +34,9 @@ public function __construct(
}

public function loadForUser(User $user): array {
return (new Listing())->getDao()->loadForGivenUser(
/** @var Dao $dao */
$dao = (new Listing())->getDao();
return $dao->loadForGivenUser(
$user
);
}
Expand Down

0 comments on commit 5e71d40

Please sign in to comment.