Symfony Deprecations - 2 only

  1. User Deprecated: Using Groups is deprecated since version 2.2 and will be removed in 3.0.
  2. The body_listener config has been enabled by default and will be disabled by default in FOSRestBundle 3.0. Please enable or disable it explicitly.

Im upgrading Symfony 3.0 to 3.4

I have resolved all the previous warnings, and they were many! But I have not been able to give a solution to these two! In other words, it is too difficult for me to find out where the fault is, to find a solution.

You should at least provide the source code, otherwise we can’t help you.

This is my composer.json

{
    "name": "project-namehere",
    "license": "proprietary",
    "type": "project",
    "autoload": {
        "psr-4": {
            "": "src/"
        },
        "classmap": [
            "app/AppKernel.php",
            "app/AppCache.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "require": {
        "php": ">=5.5.9",
        "symfony/symfony": "3.4.*",
        "doctrine/orm": "^2.5",
        "doctrine/doctrine-bundle": "^1.6",
        "doctrine/doctrine-cache-bundle": "^1.2",
        "symfony/swiftmailer-bundle": "^2.3",
        "symfony/monolog-bundle": "^3.1",
        "symfony/polyfill-apcu": "^1.0",
        "sensio/distribution-bundle": "^5.0",
        "sensio/framework-extra-bundle": "^3.0.2",
        "incenteev/composer-parameter-handler": "^2.0",
        "friendsofsymfony/user-bundle": "~2.0@dev",
        "tetranz/select2entity-bundle": "2.*",
        "friendsofsymfony/rest-bundle": "^2.1",
        "nelmio/api-doc-bundle": "^2.13",
        "pagomio/pagomio-sdk-php": "^1.0",
        "nelmio/cors-bundle": "^1.5",
        "symfony/apache-pack": "^1.0"
    },
    "require-dev": {
        "sensio/generator-bundle": "^3.0",
        "symfony/phpunit-bridge": "^3.0"
    },
    "scripts": {
        "symfony-scripts": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
        ],
        "post-install-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
        ],
        "post-update-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
        ]
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-bin-dir": "bin",
        "symfony-var-dir": "var",
        "symfony-web-dir": "web",
        "symfony-tests-dir": "tests",
        "symfony-assets-install": "relative",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "require": "3.4.*"
    }
}

And this is a log from the (1) first error!

User Deprecated: Using Groups is deprecated since version 2.2 and will be removed in 3.0.
Hide context    Hide trace
[▼
  "exception" => ErrorException {#392 ▶}
]
{▼
  /home/iamother/Php/tcl-servicios/vendor/friendsofsymfony/user-bundle/Model/GroupableInterface.php:14 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php:152 {▶}
  Symfony\Component\Debug\DebugClassLoader->loadClass() {}
  /home/iamother/Php/tcl-servicios/vendor/friendsofsymfony/user-bundle/Model/User.php:24 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php:152 {▶}
  Symfony\Component\Debug\DebugClassLoader->loadClass() {}
  /home/iamother/Php/tcl-servicios/src/AppBundle/Entity/User.php:15 {▼
    ›  */
    › class User extends BaseUser
    › {
  }
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php:152 {▶}
  Symfony\Component\Debug\DebugClassLoader->loadClass() {}
  spl_autoload_call() {}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/Token/UsernamePasswordToken.php:105 {▶}
  Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken->unserialize() {}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ContextListener.php:257 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ContextListener.php:97 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Debug/WrappedListener.php:46 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php:35 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall.php:84 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php:48 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:115 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:214 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:143 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:127 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68 {▶}
  /home/iamother/Php/tcl-servicios/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200 {▶}
  /home/iamother/Php/tcl-servicios/web/app_dev.php:28 {▶}
}

Log for the 2 Error

The body_listener config has been enabled by default and will be disabled by default in FOSRestBundle 3.0. Please enable or disable it explicitly.
Hide context    Show trace
[▼
  "exception" => SilencedErrorContext {#1368 ▼
    +count: 1
    -severity: E_USER_DEPRECATED
    trace: {▶}
  }
]