Processes are initialized, and then run during installation.
Inheritance: implements ComponentInstaller\Process\ProcessInterface
Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     $output = parent::init();
     if ($this->config->has('component-baseurl')) {
         $this->baseUrl = $this->config->get('component-baseurl');
     }
     return $output;
 }
Esempio n. 2
0
 /**
  * testGetComponentName
  *
  * @dataProvider providerGetComponentName
  * @param string $prettyName
  * @param array $extra
  * @param string $expected
  */
 public function testGetComponentName($prettyName, array $extra, $expected)
 {
     $process = new Process($this->composer, $this->io);
     $result = $process->getComponentName($prettyName, array('component' => $extra));
     $this->assertEquals($result, $expected, sprintf('Fail to get proper component name for %s', $prettyName));
 }
Esempio n. 3
0
 public function init()
 {
     $output = parent::init();
     $this->installationManager = $this->composer->getInstallationManager();
     return $output;
 }