<?php

namespace Oro\Bundle\SegmentBundle\Controller\Api\Rest;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;

class DeprecatedSegmentController extends Controller
{
    /**
     * Deprecated action!!! Get entity segments forward.
     *
     * @param $entityName
     * @return Response
     * @deprecated
     */
    public function getItemsAction($entityName)
    {
        return $this->forward('OroSegmentBundle:Api/Rest/Segment:getItems', [], ['entityName' => $entityName]);
    }
}

<?php

namespace Oro\Bundle\SegmentBundle\Controller\Api\Rest;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;

/**
 * @deprecated
 */
class DeprecatedSegmentController extends Controller
{
    /**
     * Deprecated action!!! Get entity segments forward.
     *
     * @param $entityName
     * @return Response
     * @deprecated
     */
    public function getItemsAction($entityName)
    {
        return $this->forward('OroSegmentBundle:Api/Rest/Segment:getItems', [], ['entityName' => $entityName]);
    }
}

Remove BC break of REST API after migration to new version of FOSRestBundle - small fix
BAP-6912: Remove BC break of REST API after migration to new version of FOSRestBundle
 - small fix
