|
|
@ -29,46 +29,28 @@ use Symfony\Component\Validator\Exception\ValidatorException; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class SettingsManager implements SettingsManagerInterface |
|
|
|
class SettingsManager implements SettingsManagerInterface |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** |
|
|
|
protected ?AccessUrl $url = null; |
|
|
|
* @var null|\Chamilo\CoreBundle\Entity\AccessUrl |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
protected $url; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
protected ServiceRegistryInterface $schemaRegistry; |
|
|
|
* @var ServiceRegistryInterface |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
protected $schemaRegistry; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
protected EntityManager $manager; |
|
|
|
* @var EntityManager |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
protected $manager; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
protected EntityRepository $repository; |
|
|
|
* @var EntityRepository |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
protected $repository; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
protected EventDispatcherInterface $eventDispatcher; |
|
|
|
* @var EventDispatcherInterface |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
protected $eventDispatcher; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Runtime cache for resolved parameters. |
|
|
|
* Runtime cache for resolved parameters. |
|
|
|
* |
|
|
|
* |
|
|
|
* @var Settings[] |
|
|
|
* @var Settings[] |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected $resolvedSettings = []; |
|
|
|
protected array $resolvedSettings = []; |
|
|
|
//protected $settings; |
|
|
|
//protected $settings; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* @var array<string, \Sylius\Bundle\SettingsBundle\Model\Settings>|mixed[] |
|
|
|
* @var array<string, \Sylius\Bundle\SettingsBundle\Model\Settings>|mixed[]|null |
|
|
|
*/ |
|
|
|
|
|
|
|
protected $schemaList; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @var \Symfony\Component\HttpFoundation\RequestStack |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected $request; |
|
|
|
protected ?array $schemaList; |
|
|
|
|
|
|
|
protected RequestStack $request; |
|
|
|
|
|
|
|
|
|
|
|
public function __construct( |
|
|
|
public function __construct( |
|
|
|
ServiceRegistryInterface $schemaRegistry, |
|
|
|
ServiceRegistryInterface $schemaRegistry, |
|
|
|