1 | <?php |
||
16 | class ParseCommand extends ContainerAwareCommand |
||
17 | { |
||
18 | /** |
||
19 | * Pdp Parser. |
||
20 | * |
||
21 | * @var \Pdp\Parser |
||
22 | */ |
||
23 | private $parser; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 6 | protected function configure() |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 6 | protected function initialize( |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 6 | protected function execute(InputInterface $input, OutputInterface $output) |
|
68 | |||
69 | /** |
||
70 | * Argument parsing. |
||
71 | * |
||
72 | * @param string $argument Url or domain |
||
73 | * @param bool $hostOnly |
||
74 | * |
||
75 | * @return \Pdp\Uri\Url|\Pdp\Uri\Url\Host |
||
76 | */ |
||
77 | 6 | private function parse($argument, $hostOnly = false) |
|
87 | } |
||
88 |