Skip to content

Commit

Permalink
Remove proxy manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Lander Vanderstraeten committed Jan 17, 2018
1 parent 51ec305 commit a1f992e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"doctrine/collections": "~1.2",
"gitonomy/gitlib": "^1.0.3",
"monolog/monolog": "~1.16",
"ocramius/proxy-manager": "~0.4|~1.0|~2.0",
"seld/jsonlint": "~1.1",
"symfony/config": "~2.7|~3.0|~4.0",
"symfony/console": "~2.7|~3.0|~4.0",
Expand All @@ -20,7 +19,6 @@
"symfony/finder": "~2.7|~3.0|~4.0",
"symfony/options-resolver": "~2.7|~3.0|~4.0",
"symfony/process": "~2.7|~3.0|~4.0",
"symfony/proxy-manager-bridge": "~2.7|~3.0|~4.0",
"symfony/yaml": "~2.7|~3.0|~4.0"
},
"require-dev": {
Expand Down
1 change: 0 additions & 1 deletion resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ services:

grumphp.io.console:
class: GrumPHP\IO\ConsoleIO
lazy: true
arguments:
- '@console.input'
- '@console.output'
Expand Down
2 changes: 0 additions & 2 deletions src/Configuration/ContainerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace GrumPHP\Configuration;

use GrumPHP\Util\Filesystem;
use Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
Expand All @@ -19,7 +18,6 @@ final class ContainerFactory
public static function buildFromConfiguration($path)
{
$container = new ContainerBuilder();
$container->setProxyInstantiator(new RuntimeInstantiator());

// Add compiler passes:
$container->addCompilerPass(new Compiler\ExtensionCompilerPass());
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ protected function getContainer()
*/
protected function configureIO(InputInterface $input, OutputInterface $output)
{
parent::configureIO($input, $output);

$container = $this->getContainer();

// Register the console input and output to the container
$container->set('console.input', $input);
$container->set('console.output', $output);

parent::configureIO($input, $output);

// Redirect the GrumPHP logger to the stdout in verbose mode
/** @var IOInterface $io */
$io = $container->get('grumphp.io.console');
Expand Down

0 comments on commit a1f992e

Please sign in to comment.