Skip to content
Snippets Groups Projects
Commit 2e93952c authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

uploader cassé : FormElementManagerV3Polyfill est deprecated et inutilisé,...

uploader cassé : FormElementManagerV3Polyfill est deprecated et inutilisé, remplacé par FormElementManager
parent a76bf749
Branches
Tags
1 merge request!7uploader cassé : FormElementManagerV3Polyfill est deprecated et inutilisé,...
Pipeline #11870 failed
CHANGELOG CHANGELOG
========= =========
4.0.2 (15/12/2021)
------------------
- [FIX] uploader cassé : FormElementManagerV3Polyfill est deprecated et inutilisé, remplacé par FormElementManager
4.0.1 (10/12/2021) 4.0.1 (10/12/2021)
------------------ ------------------
- PHP 7.4 & MPDF 8.0 requis - PHP 7.4 & MPDF 8.0 requis
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
namespace UnicaenApp\Controller\Plugin\Upload; namespace UnicaenApp\Controller\Plugin\Upload;
use UnicaenApp\Util; use UnicaenApp\Util;
use Laminas\Form\FormElementManager\FormElementManagerV3Polyfill; use Laminas\Form\FormElementManager;
use Laminas\Mvc\Controller\Plugin\AbstractPlugin; use Laminas\Mvc\Controller\Plugin\AbstractPlugin;
use Laminas\View\Model\JsonModel; use Laminas\View\Model\JsonModel;
...@@ -105,14 +105,14 @@ class UploaderPlugin extends AbstractPlugin ...@@ -105,14 +105,14 @@ class UploaderPlugin extends AbstractPlugin
} }
/** /**
* @var FormElementManagerV3Polyfill * @var FormElementManager
*/ */
private $formElementManager; private $formElementManager;
/** /**
* @param FormElementManagerV3Polyfill $formElementManager * @param FormElementManager $formElementManager
*/ */
public function setFormElementManager(FormElementManagerV3Polyfill $formElementManager) public function setFormElementManager(FormElementManager $formElementManager)
{ {
$this->formElementManager = $formElementManager; $this->formElementManager = $formElementManager;
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
namespace UnicaenApp\Controller\Plugin\Upload; namespace UnicaenApp\Controller\Plugin\Upload;
use Psr\Container\ContainerInterface; use Psr\Container\ContainerInterface;
use Laminas\Form\FormElementManager\FormElementManagerV3Polyfill; use Laminas\Form\FormElementManager;
use Laminas\ServiceManager\FactoryInterface; use Laminas\ServiceManager\FactoryInterface;
use Laminas\ServiceManager\ServiceLocatorInterface; use Laminas\ServiceManager\ServiceLocatorInterface;
...@@ -20,7 +20,7 @@ class UploaderPluginFactory implements FactoryInterface ...@@ -20,7 +20,7 @@ class UploaderPluginFactory implements FactoryInterface
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{ {
/** @var FormElementManagerV3Polyfill $fem */ /** @var FormElementManager $fem */
$fem = $container->get('FormElementManager'); $fem = $container->get('FormElementManager');
$plugin = new UploaderPlugin(); $plugin = new UploaderPlugin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment