RuleSetGenerator instance does not need to be kept around anymore
parent
1e08097a17
commit
c0f5c13516
|
@ -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…
Reference in New Issue