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

Loading…
Cancel
Save