upgrade zend (#1559)
[openemr.git] / vendor / zendframework / zend-form / autoload / formElementManagerPolyfill.php
blobba0b155026db4f6d5e5746f7eb09ad1153f808f0
1 <?php
2 /**
3 * @link http://github.com/zendframework/zend-form for the canonical source repository
4 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
5 * @license http://framework.zend.com/license/new-bsd New BSD License
6 */
8 use Zend\Form\FormElementManager;
9 use Zend\ServiceManager\ServiceManager;
11 call_user_func(function () {
12 $target = method_exists(ServiceManager::class, 'configure')
13 ? FormElementManager\FormElementManagerV3Polyfill::class
14 : FormElementManager\FormElementManagerV2Polyfill::class;
16 class_alias($target, FormElementManager::class);
17 });