Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
fixed a regression
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Apr 10, 2019
1 parent 02d272b commit cd81de1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions DependencyInjection/SensioFrameworkExtraExtension.php
Expand Up @@ -11,11 +11,9 @@

namespace Sensio\Bundle\FrameworkExtraBundle\DependencyInjection;

use Psr\Http\Message\StreamFactoryInterface;
use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface;
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Exception\LogicException;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
Expand Down Expand Up @@ -149,8 +147,8 @@ public function load(array $configs, ContainerBuilder $container)
if ($config['psr_message']['enabled']) {
$loader->load('psr7.xml');

if (!interface_exists(StreamFactoryInterface::class)) {
throw new LogicException('PSR-7 support cannot be enabled as the required dependencies are not installed. Try running "composer require nyholm/psr7".');
if (!class_exists(ServerRequestFactory::class)) {
$definitionsToRemove[] = 'sensio_framework_extra.psr7.argument_value_resolver.server_request';
}
}

Expand Down

0 comments on commit cd81de1

Please sign in to comment.