Completed
Push — 3.x ( 3d5935...36902d )
by Jordi Sala
02:59
created

src/Export/Exporter.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Sonata Project package.
7
 *
8
 * (c) Thomas Rabaix <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Sonata\AdminBundle\Export;
15
16
use Sonata\CoreBundle\Exporter\Exporter as CoreExporter;
17
use Sonata\Exporter\Exporter as BaseExporter;
18
19
if (class_exists(CoreExporter::class)) {
20
    /**
21
     * NEXT_MAJOR: remove this class.
22
     *
23
     * @deprecated since sonata-project/admin-bundle 3.14, to be removed in 4.0.
24
     */
25
    class Exporter extends CoreExporter
0 ignored issues
show
Deprecated Code introduced by
The class Sonata\CoreBundle\Exporter\Exporter has been deprecated with message: since sonata-project/core-bundle 3.19, to be removed in 4.0.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
26
    {
27
        public function __construct()
28
        {
29
            @trigger_error(
30
                'The '.__NAMESPACE__.'\Exporter class is deprecated since version 3.14 and will be removed in 4.0.'.
31
                ' Use \Sonata\Exporter\Exporter instead',
32
                E_USER_DEPRECATED
33
            );
34
        }
35
    }
36
} else {
37
    class_alias(
38
        BaseExporter::class,
39
        __NAMESPACE__.'\Exporter'
40
    );
41
}
42