2016-07-29 10:22:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
2016-12-29 12:09:26 +01:00
|
|
|
* This file is part of the NelmioApiDocBundle package.
|
2016-07-29 10:22:40 +02:00
|
|
|
*
|
2016-12-29 12:09:26 +01:00
|
|
|
* (c) Nelmio
|
2016-07-29 10:22:40 +02:00
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
2016-12-29 12:09:26 +01:00
|
|
|
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity;
|
2016-07-29 10:22:40 +02:00
|
|
|
|
|
|
|
use ApiPlatform\Core\Annotation\ApiProperty;
|
2022-09-25 21:47:11 +02:00
|
|
|
use Nelmio\ApiDocBundle\Tests\Functional\EntityExcluded;
|
2016-07-29 10:22:40 +02:00
|
|
|
|
2022-09-25 21:47:11 +02:00
|
|
|
// BC Api-Platform < 3.x
|
2022-09-25 21:32:09 +02:00
|
|
|
if (!class_exists(ApiProperty::class)) {
|
2022-09-25 21:48:03 +02:00
|
|
|
class Dummy extends EntityExcluded\ApiPlatform3\Dummy
|
|
|
|
{
|
|
|
|
}
|
2022-09-25 21:32:09 +02:00
|
|
|
} else {
|
2022-09-25 21:47:11 +02:00
|
|
|
class_alias(EntityExcluded\ApiPlatform2\Dummy::class, Dummy::class);
|
2022-09-25 21:33:08 +02:00
|
|
|
}
|