mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-22 14:45:43 +00:00
Introduce ManagerAwareCenterResolverInterface to ensure resolvers can reference their manager. Added a trait for implementing the interface and updated the CenterResolverManager to initialize resolvers correctly.
23 lines
519 B
PHP
23 lines
519 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Chill\MainBundle\Security\Resolver;
|
|
|
|
trait ManagerAwareCenterResolverTrait
|
|
{
|
|
protected CenterResolverManagerInterface $centerResolverManager;
|
|
|
|
public function setResolverManager(CenterResolverManagerInterface $manager): void
|
|
{
|
|
$this->centerResolverManager = $manager;
|
|
}
|
|
}
|