Commit fab5b530 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Merge branch 'll-bug-polyfill-deprecated' into 'master'

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

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