1
0
Fork 0

RuleSetGenerator instance does not need to be kept around anymore

pull/8916/head
Jordi Boggiano 2020-06-02 09:45:19 +02:00
parent 1e08097a17
commit c0f5c13516
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 4 deletions

View File

@ -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;