RuleSetGenerator instance does not need to be kept around anymore

main
Jordi Boggiano 4 years ago
parent 1e08097a17
commit c0f5c13516
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -31,8 +31,6 @@ class Solver
/** @var RuleSet */
protected $rules;
/** @var RuleSetGenerator */
protected $ruleSetGenerator;
/** @var RuleWatchGraph */
protected $watchGraph;
@ -192,8 +190,9 @@ class Solver
$this->setupFixedMap($request);
$this->io->writeError('Generating rules', true, IOInterface::DEBUG);
$this->ruleSetGenerator = new RuleSetGenerator($this->policy, $this->pool);
$this->rules = $this->ruleSetGenerator->getRulesFor($request, $ignorePlatformReqs);
$ruleSetGenerator = new RuleSetGenerator($this->policy, $this->pool);
$this->rules = $ruleSetGenerator->getRulesFor($request, $ignorePlatformReqs);
unset($ruleSetGenerator);
$this->checkForRootRequireProblems($request, $ignorePlatformReqs);
$this->decisions = new Decisions($this->pool);
$this->watchGraph = new RuleWatchGraph;

Loading…
Cancel
Save