You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Helper/ProgressBar.php
-30Lines changed: 0 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -168,20 +168,6 @@ public function getMaxSteps()
168
168
return$this->max;
169
169
}
170
170
171
-
/**
172
-
* Gets the progress bar step.
173
-
*
174
-
* @deprecated since version 2.6, to be removed in 3.0. Use {@link getProgress()} instead.
175
-
*
176
-
* @return int The progress bar step
177
-
*/
178
-
publicfunctiongetStep()
179
-
{
180
-
trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the getProgress() method instead.', E_USER_DEPRECATED);
181
-
182
-
return$this->getProgress();
183
-
}
184
-
185
171
/**
186
172
* Gets the current step position.
187
173
*
@@ -355,22 +341,6 @@ public function advance($step = 1)
355
341
$this->setProgress($this->step + $step);
356
342
}
357
343
358
-
/**
359
-
* Sets the current progress.
360
-
*
361
-
* @deprecated since version 2.6, to be removed in 3.0. Use {@link setProgress()} instead.
362
-
*
363
-
* @param int $step The current progress
364
-
*
365
-
* @throws \LogicException
366
-
*/
367
-
publicfunctionsetCurrent($step)
368
-
{
369
-
trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the setProgress() method instead.', E_USER_DEPRECATED);
370
-
371
-
$this->setProgress($step);
372
-
}
373
-
374
344
/**
375
345
* Sets whether to overwrite the progressbar, false for new line
trigger_error('The $definition argument of the '.__METHOD__.' method is deprecated and will be removed in 3.0. Set this parameter with the bind() method instead.', E_USER_DEPRECATED);
$this->assertStringEqualsFile(self::$fixturesPath.'/application_astext1.txt', $this->normalizeLineBreaks($application->asText()), '->asText() returns a text representation of the application');
504
-
$this->assertStringEqualsFile(self::$fixturesPath.'/application_astext2.txt', $this->normalizeLineBreaks($application->asText('foo')), '->asText() returns a text representation of the application');
$this->assertXmlStringEqualsXmlFile(self::$fixturesPath.'/application_asxml1.txt', $application->asXml(), '->asXml() returns an XML representation of the application');
518
-
$this->assertXmlStringEqualsXmlFile(self::$fixturesPath.'/application_asxml2.txt', $application->asXml('foo'), '->asXml() returns an XML representation of the application');
$this->assertStringEqualsFile(self::$fixtures.'/definition_astext.txt', $definition->asText(), '->asText() returns a textual representation of the InputDefinition');
newInputArgument('foo', InputArgument::OPTIONAL, 'The foo argument'),
405
-
newInputArgument('baz', InputArgument::OPTIONAL, 'The baz argument', true),
406
-
newInputArgument('bar', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'The bar argument', array('bar')),
407
-
newInputOption('foo', 'f', InputOption::VALUE_REQUIRED, 'The foo option'),
408
-
newInputOption('baz', null, InputOption::VALUE_OPTIONAL, 'The baz option', false),
409
-
newInputOption('bar', 'b', InputOption::VALUE_OPTIONAL, 'The bar option', 'bar'),
410
-
));
411
-
$this->assertXmlStringEqualsXmlFile(self::$fixtures.'/definition_asxml.txt', $definition->asXml(), '->asXml() returns an XML representation of the InputDefinition');
0 commit comments