2019-12-20 10:49:22 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of the NelmioApiDocBundle package.
|
|
|
|
*
|
|
|
|
* (c) Nelmio
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Nelmio\ApiDocBundle\Tests\Functional\Controller;
|
|
|
|
|
|
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
|
2021-12-21 17:16:14 +02:00
|
|
|
if (\PHP_VERSION_ID >= 80100) {
|
|
|
|
/**
|
|
|
|
* @Route("/api", host="api.example.com")
|
|
|
|
*/
|
|
|
|
class FOSRestController extends FOSRestController81
|
|
|
|
{
|
|
|
|
}
|
|
|
|
} else {
|
2019-12-20 10:49:22 +01:00
|
|
|
/**
|
2021-12-21 17:16:14 +02:00
|
|
|
* @Route("/api", host="api.example.com")
|
2019-12-20 10:49:22 +01:00
|
|
|
*/
|
2021-12-21 17:16:14 +02:00
|
|
|
class FOSRestController extends FOSRestController80
|
2019-12-20 10:49:22 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|