Skip to content

Commit

Permalink
Revert "Undeprecate DiactorosFactory for 1.1"
Browse files Browse the repository at this point in the history
This reverts commit 921f866.
  • Loading branch information
nicolas-grekas committed Mar 11, 2019
1 parent 921f866 commit 5e5e0c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Factory/DiactorosFactory.php
Expand Up @@ -11,6 +11,8 @@

namespace Symfony\Bridge\PsrHttpMessage\Factory;

@trigger_error(sprintf('The "%s" class is deprecated since symfony/psr-http-message-bridge 1.2, use PsrHttpFactory instead.', DiactorosFactory::class), E_USER_DEPRECATED);

use Psr\Http\Message\UploadedFileInterface;
use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
Expand All @@ -28,6 +30,8 @@
* Builds Psr\HttpMessage instances using the Zend Diactoros implementation.
*
* @author Kévin Dunglas <dunglas@gmail.com>
*
* @deprecated since symfony/psr-http-message-bridge 1.2, use PsrHttpFactory instead
*/
class DiactorosFactory implements HttpMessageFactoryInterface
{
Expand Down
2 changes: 2 additions & 0 deletions Tests/Factory/DiactorosFactoryTest.php
Expand Up @@ -16,6 +16,8 @@
/**
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Antonio J. García Lagar <aj@garcialagar.es>
*
* @group legacy
*/
class DiactorosFactoryTest extends AbstractHttpMessageFactoryTest
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -35,7 +35,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.1-dev"
"dev-master": "1.2-dev"
}
}
}

0 comments on commit 5e5e0c3

Please sign in to comment.