コード例 #1
0
ファイル: Processor.php プロジェクト: imarc/opus
 /**
  * Initializes library installer.
  *
  * @param IOInterface $io The input/output handler
  * @param Composer $composer The composer instance being run
  * @param string $type The type
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'library')
 {
     parent::__construct($io, $composer, $type);
     //
     // We can now parse our 'extra' configuration key for all our related information.
     //
     $extra = $this->composer->getPackage()->getExtra();
     $this->mapFile = getcwd() . DIRECTORY_SEPARATOR . self::NAME . '.map';
     $this->framework = $composer->getPackage()->getName();
     $this->integrity = 'medium';
     if (isset($extra[self::NAME]['options'])) {
         $options = $extra[self::NAME]['options'];
         $this->externalMapping = isset($options['external-mapping']) ? (bool) $options['external-mapping'] : FALSE;
         if (isset($options['framework'])) {
             $this->framework = $options['framework'];
             //
             // Previous versions were noted as enabled if they set a framework.  This will
             // re-establish that, but will get overloaded later if enabled is explicitly set.
             //
             $this->enabled = TRUE;
         }
         if (isset($options['integrity'])) {
             $options['integrity'] = strtolower($options['integrity']);
             $valid_levels = array('low', 'medium', 'high');
             $this->integrity = in_array($options['integrity'], $valid_levels) ? $options['integrity'] : 'medium';
         }
     }
     if (isset($extra[self::NAME]['enabled'])) {
         $this->enabled = $extra[self::NAME]['enabled'];
     }
 }
コード例 #2
0
 function __construct(IOInterface $io, Composer $composer, array $installInfo)
 {
     // fill in install info defaults
     $installInfo += ['wordpress-path' => false, 'wp-content-path' => false, 'wpmu-plugin-dir' => false, 'path-mapping' => [], 'symlink-wp-content' => true, 'mu-plugin-autoloader' => true, 'dev-first' => false];
     // wp content path - either set or default
     $wpContent = $installInfo['wp-content-path'] ?: self::wp_content;
     // default paths for plugins and themes
     $installInfo['default-paths'] = ['wordpress-plugin' => "{$wpContent}/plugins", 'wordpress-muplugin' => "{$wpContent}/mu-plugins", 'wordpress-theme' => "{$wpContent}/themes"];
     // if the wp-content path was explicitly set, add to the path mapping for plugins/themes
     if ($installInfo['wp-content-path']) {
         $installInfo['path-mapping'] += $installInfo['default-paths'];
     } else {
         // set the default wp-content path for mapping and symlinking
         $installInfo['wp-content-path'] = $wpContent;
     }
     // add a mapping for core if wordpress path is set
     if ($installInfo['wordpress-path']) {
         $installInfo['path-mapping']['wordpress-core'] = $installInfo['wordpress-path'];
     } else {
         $installInfo['wordpress-path'] = $installInfo['default-paths']['wordpress-core'] = self::wordpress;
     }
     // wpmu-plugin-dir supersedes the default wp-content based path
     if ($installInfo['wpmu-plugin-dir']) {
         $installInfo['path-mapping']['wordpress-muplugin'] = $installInfo['wpmu-plugin-dir'];
     } else {
         $installInfo['wpmu-plugin-dir'] = $installInfo['default-paths']['wordpress-muplugin'];
     }
     $this->installInfo = $installInfo;
     parent::__construct($io, $composer);
 }
コード例 #3
0
 public function __construct(IOInterface $io, Composer $composer, $type = null)
 {
     if ($composer->getConfig()->has('composer-global-installer')) {
         $this->_isInUse = true;
         $this->_config = $composer->getConfig()->get('composer-global-installer');
         if (isset($this->_config['vendor-global-dir'])) {
             $this->_globalDir = $this->_config['vendor-global-dir'];
         }
         if (isset($this->_config['vendor-global-types'])) {
             // Bad format, use default
             // @todo throw exception
             if (is_array($this->_config['vendor-global-types'])) {
                 $this->_supportedTypes = $this->_config['vendor-global-types'];
             }
         }
         if ($composer->getConfig()->has('vendor-global-packages')) {
             // Bad format, use default
             // @todo throw exception
             if (is_array($composer->getConfig()->get('vendor-global-packages'))) {
                 $this->_globalPackages = $composer->getConfig()->get('vendor-global-packages');
             }
         }
     }
     parent::__construct($io, $composer, $type);
 }
コード例 #4
0
 public function __construct(IOInterface $io, Composer $composer, array $compound_generators, EmptyGenerator $empty_generator, ReflectionGenerator $reflection_generator)
 {
     parent::__construct($io, $composer);
     $this->compound_generators = $compound_generators;
     $this->empty_generator = $empty_generator;
     $this->reflection_generator = $reflection_generator;
 }
コード例 #5
0
ファイル: Installer.php プロジェクト: akimsko/courier
 /**
  * @param IOInterface $io
  * @param Composer    $composer
  * @param string      $type
  * @param Filesystem  $filesystem
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'library', Filesystem $filesystem = null)
 {
     parent::__construct($io, $composer, $type, $filesystem);
     if ($extra = $this->composer->getPackage()->getExtra()) {
         $this->paths = isset($extra['courier-paths']) ? $extra['courier-paths'] : array();
     }
 }
コード例 #6
0
ファイル: CommandInstaller.php プロジェクト: firehed/plow
 /**
  * {@inheritDoc}
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'library', Filesystem $filesystem = null)
 {
     parent::__construct($io, $composer, $type, $filesystem);
     $this->loadCommandList();
     // TODO: Build this list correctly
     $this->packages['firehed/plow'] = ['classes' => ['Firehed\\Plow\\Plow'], 'version' => 'dev-lol'];
 }
 /**
  * @param IOInterface                  $io
  * @param Composer                     $composer
  * @param SymlinkFilesystem            $filesystem
  * @param PackageDataManagerInterface  $dataManager
  * @param SharedPackageInstallerConfig $config
  */
 public function __construct(IOInterface $io, Composer $composer, SymlinkFilesystem $filesystem, PackageDataManagerInterface $dataManager, SharedPackageInstallerConfig $config)
 {
     $this->filesystem = $filesystem;
     parent::__construct($io, $composer, 'library', $this->filesystem);
     $this->config = $config;
     $this->vendorDir = $this->config->getVendorDir();
     $this->packageDataManager = $dataManager;
     $this->packageDataManager->setVendorDir($this->vendorDir);
 }
コード例 #8
0
ファイル: AssetInstaller.php プロジェクト: cychenyin/postmill
 /**
  * Constructor.
  *
  * @param IOInterface        $io
  * @param Composer           $composer
  * @param AssetTypeInterface $assetType
  * @param Filesystem         $filesystem
  */
 public function __construct(IOInterface $io, Composer $composer, AssetTypeInterface $assetType, Filesystem $filesystem = null)
 {
     parent::__construct($io, $composer, $assetType->getComposerType(), $filesystem);
     $extra = $composer->getPackage()->getExtra();
     if (!empty($extra['asset-installer-paths'][$this->type])) {
         $this->vendorDir = rtrim($extra['asset-installer-paths'][$this->type], '/');
     } else {
         $this->vendorDir = rtrim($this->vendorDir . '/' . $assetType->getComposerVendorName(), '/');
     }
 }
コード例 #9
0
 /**
  * @param   string                      $vendorDir  relative path for packages home
  * @param   string                      $binDir     relative path for binaries
  * @param   DownloadManager             $dm         download manager
  * @param   WritableRepositoryInterface $repository repository controller
  * @param   IOInterface                 $io         io instance
  */
 public function __construct($vendorDir, $binDir, DownloadManager $dm, WritableRepositoryInterface $repository, IOInterface $io, InstallationManager $im)
 {
     parent::__construct($vendorDir, $binDir, $dm, $repository, $io, 'composer-installer');
     $this->installationManager = $im;
     foreach ($repository->getPackages() as $package) {
         if ('composer-installer' === $package->getType()) {
             $this->registerInstaller($package);
         }
     }
 }
コード例 #10
0
 public function __construct(IOInterface $io, Composer $composer)
 {
     parent::__construct($io, $composer);
     $extra = $this->composer->getPackage()->getExtra();
     $extra += array('drupal-libraries' => array(), 'drupal-modules' => array(), 'drupal-themes' => array(), 'drupal-root' => 'core');
     $this->drupalLibraries = $extra['drupal-libraries'] + array('ckeditor/ckeditor' => "");
     $this->drupalModules = $extra['drupal-modules'] + array('drupal/*' => 'contrib');
     $this->drupalThemes = $extra['drupal-themes'] + array('drupal/*' => 'contrib');
     $this->drupalRoot = $extra['drupal-root'];
     $this->cached = array();
 }
コード例 #11
0
 /**
  * Initializes Installer installer.
  *
  * @param IOInterface $io
  * @param Composer    $composer
  * @param string      $type
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'library')
 {
     parent::__construct($io, $composer, 'composer-installer');
     $this->installationManager = $composer->getInstallationManager();
     $repo = $composer->getRepositoryManager()->getLocalRepository();
     foreach ($repo->getPackages() as $package) {
         if ('composer-installer' === $package->getType()) {
             $this->registerInstaller($package);
         }
     }
 }
コード例 #12
0
 public function __construct(IOInterface $io, Composer $composer, $type, Filesystem $filesystem = null)
 {
     parent::__construct($io, $composer, $type, $filesystem);
     switch ($type) {
         case 'wordpress-plugin':
             $this->vendorDir = 'wp-content/plugins';
             break;
         case 'wordpress-theme':
             $this->vendorDir = 'wp-content/themes';
             break;
     }
 }
コード例 #13
0
 public function __construct(Composer $composer, IOInterface $io, $type = 'library', Filesystem $filesystem = null)
 {
     $this->composer = $composer;
     $this->config = $composer->getConfig();
     $this->io = $io;
     $this->root = realpath(dirname(Factory::getComposerFile()));
     if (!file_exists($this->root . '/config/modules.php')) {
         touch($this->root . '/config/modules.php');
         chmod($this->root . '/config/modules.php', 0775);
     }
     parent::__construct($io, $composer, $type, $filesystem);
 }
コード例 #14
0
 /**
  * @param   string                      $vendorDir  relative path for packages home
  * @param   string                      $binDir     relative path for binaries
  * @param   DownloadManager             $dm         download manager
  * @param   IOInterface                 $io         io instance
  * @param   InstallationManager         $im         installation manager
  * @param   array                       $localRepositories array of WritableRepositoryInterface
  */
 public function __construct($vendorDir, $binDir, DownloadManager $dm, IOInterface $io, InstallationManager $im, array $localRepositories)
 {
     parent::__construct($vendorDir, $binDir, $dm, $io, 'composer-installer');
     $this->installationManager = $im;
     foreach ($localRepositories as $repo) {
         foreach ($repo->getPackages() as $package) {
             if ('composer-installer' === $package->getType()) {
                 $this->registerInstaller($package);
             }
         }
     }
 }
コード例 #15
0
 /**
  * {@inheritDoc}
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'library', Filesystem $filesystem = null)
 {
     parent::__construct($io, $composer, $type, $filesystem);
     $extra = $composer->getPackage()->getExtra();
     $this->setLocalDirs(isset($extra['local-dirs']) ? $extra['local-dirs'] : dirname(getcwd()));
     if (isset($extra['local-vendors'])) {
         $this->setLocalVendors($extra['local-vendors']);
     }
     if (isset($extra['local-packages'])) {
         $this->setLocalPackages($extra['local-packages']);
     }
 }
コード例 #16
0
 /**
  * {@inheritdoc}
  */
 public function __construct(IOInterface $io, Composer $composer, $type = '')
 {
     parent::__construct($io, $composer, $type);
     $options = $composer->getPackage()->getExtra();
     $this->rubedoRootDir = isset($options['rubedo-root-dir']) ? rtrim($options['rubedo-root-dir'], '/') : '.';
     $this->process = new ProcessExecutor($io);
     $this->fileSystem = new Filesystem();
     if (isset($options['rubedo-files-to-ignore'])) {
         $this->filesToIgnore = $options['rubedo-files-to-ignore'];
     }
     if (isset($options['rubedo-dirs-to-ignore'])) {
         $this->dirsToIgnore = $options['rubedo-dirs-to-ignore'];
     }
 }
 public function __construct(IOInterface $io, Composer $composer)
 {
     parent::__construct($io, $composer);
     $extra = $this->composer->getPackage()->getExtra();
     $this->drupalConfig = isset($extra['drupal-libraries']) ? $extra['drupal-libraries'] : array();
     $this->drupalLibrariesPath = isset($this->drupalConfig['library-directory']) ? $this->drupalConfig['library-directory'] : 'www/sites/all/libraries/';
     if (substr($this->drupalLibrariesPath, -1) != '/') {
         $this->drupalLibrariesPath .= '/';
     }
     $this->drupalLibraries = isset($this->drupalConfig['libraries']) ? $this->drupalConfig['libraries'] : array();
     $this->drupalLibraryMap = array();
     foreach ($this->drupalLibraries as $library) {
         $this->drupalLibraryMap[$library['package']] = $library['name'];
     }
 }
コード例 #18
0
 /**
  * Initializes installer: creation of `assets-dir` directory if so
  *
  * {@inheritDoc}
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'library')
 {
     parent::__construct($io, $composer, $type);
     $this->guessConfigurator($composer->getPackage());
     $config = $composer->getConfig();
     $this->app_base_path = rtrim(str_replace($config->get('vendor-dir'), '', $this->getVendorDir()), '/');
     if (empty($this->app_base_path) || $this->app_base_path == '/') {
         $this->app_base_path = getcwd();
     }
     $this->filesystem = new AssetsFilesystem();
     $this->assets_dir = $this->guessAssetsDir($composer->getPackage());
     $this->assets_vendor_dir = $this->guessAssetsVendorDir($composer->getPackage());
     $this->document_root = $this->guessDocumentRoot($composer->getPackage());
     $this->assets_db_filename = $this->guessAssetsDbFilename($composer->getPackage());
 }
コード例 #19
0
 /**
  * Initializes Magento Module installer
  *
  * @param \Composer\IO\IOInterface $io
  * @param \Composer\Composer $composer
  * @param string $type
  * @throws \ErrorException
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'magento-module')
 {
     parent::__construct($io, $composer, $type);
     $this->initializeVendorDir();
     $this->annoy($io);
     $extra = $composer->getPackage()->getExtra();
     if (isset($extra['magento-root-dir']) || (($rootDirInput = $io->ask('please define your magento root dir [' . $this->defaultMagentoRootDir . '] ', $this->defaultMagentoRootDir)) || ($rootDirInput = $this->defaultMagentoRootDir))) {
         if (isset($rootDirInput)) {
             $extra['magento-root-dir'] = $rootDirInput;
             $this->updateJsonExtra($extra, $io);
         }
         $dir = rtrim(trim($extra['magento-root-dir']), '/\\');
         $this->magentoRootDir = new \SplFileInfo($dir);
         if (!is_dir($dir) && $io->askConfirmation('magento root dir "' . $dir . '" missing! create now? [Y,n] ')) {
             $this->initializeMagentoRootDir($dir);
             $io->write('magento root dir "' . $dir . '" created');
         }
         if (!is_dir($dir)) {
             $dir = $this->vendorDir . "/{$dir}";
             $this->magentoRootDir = new \SplFileInfo($dir);
         }
     }
     if (isset($extra['modman-root-dir'])) {
         $dir = rtrim(trim($extra['modman-root-dir']), '/\\');
         if (!is_dir($dir)) {
             $dir = $this->vendorDir . "/{$dir}";
         }
         if (!is_dir($dir)) {
             throw new \ErrorException("modman root dir \"{$dir}\" is not valid");
         }
         $this->modmanRootDir = new \SplFileInfo($dir);
     }
     if (is_null($this->magentoRootDir) || false === $this->magentoRootDir->isDir()) {
         $dir = $this->magentoRootDir instanceof \SplFileInfo ? $this->magentoRootDir->getPathname() : '';
         throw new \ErrorException("magento root dir \"{$dir}\" is not valid");
     }
     if (isset($extra['magento-force'])) {
         $this->isForced = (bool) $extra['magento-force'];
     }
     if (isset($extra['magento-deploystrategy'])) {
         $this->setDeployStrategy((string) $extra['magento-deploystrategy']);
     }
     if (!empty($extra['skip-package-deployment'])) {
         $this->skipPackageDeployment = true;
     }
 }
コード例 #20
0
 /**
  * Initializes Magento Module installer
  *
  * @param \Composer\IO\IOInterface $io
  * @param \Composer\Composer $composer
  * @param string $type
  * @throws \ErrorException
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'magento-module')
 {
     parent::__construct($io, $composer, $type);
     $this->initializeVendorDir();
     $this->annoy($io);
     $extra = $composer->getPackage()->getExtra();
     if (isset($extra['magento-root-dir'])) {
         $dir = rtrim(trim($extra['magento-root-dir']), '/\\');
         if (!is_dir($dir)) {
             $dir = $this->vendorDir . "/{$dir}";
         }
         $this->magentoRootDir = new \SplFileInfo($dir);
     }
     if (isset($extra['modman-root-dir'])) {
         $dir = rtrim(trim($extra['modman-root-dir']), '/\\');
         if (!is_dir($dir)) {
             $dir = $this->vendorDir . "/{$dir}";
         }
         if (!is_dir($dir)) {
             throw new \ErrorException("modman root dir \"{$dir}\" is not valid");
         }
         $this->modmanRootDir = new \SplFileInfo($dir);
     }
     if (isset($extra['magento-deploystrategy'])) {
         $this->_deployStrategy = (string) $extra['magento-deploystrategy'];
     }
     if ((is_null($this->magentoRootDir) || false === $this->magentoRootDir->isDir()) && $this->_deployStrategy != 'none') {
         $dir = $this->magentoRootDir instanceof \SplFileInfo ? $this->magentoRootDir->getPathname() : '';
         throw new \ErrorException("magento root dir \"{$dir}\" is not valid");
     }
     if (isset($extra['magento-force'])) {
         $this->isForced = (bool) $extra['magento-force'];
     }
     if (isset($extra['magento-deploystrategy'])) {
         $this->setDeployStrategy((string) $extra['magento-deploystrategy']);
     }
     if (!empty($extra['auto-append-gitignore'])) {
         $this->appendGitIgnore = true;
     }
     if (!empty($extra['path-mapping-translations'])) {
         $this->_pathMappingTranslations = (array) $extra['path-mapping-translations'];
     }
 }
コード例 #21
0
 /**
  * {@inheritDoc}
  */
 public function __construct(IOInterface $io, Composer $composer, $filesystem = null)
 {
     parent::__construct($io, $composer, 'extension', $filesystem);
     $this->didUpdate = false;
     $this->extDir = rtrim($composer->getConfig()->get('vendor-dir'), '/') . '/ext';
     $this->extOptions = $composer->getConfig()->get('ext-options');
     $this->extDirManager = new ExtensionDirectoryManager($this->filesystem, $this->extDir);
     $this->isDebianSystem = false;
     // check that we are at least on LINUX
     if (strtoupper(php_uname('s')) === 'LINUX') {
         exec('lsb_release -i --short 2> /dev/null', $stdout, $resultDist);
         $this->distro = $stdout[0];
         exec('lsb_release -r --short 2> /dev/null', $stdout, $resultRel);
         $this->release = $stdout[0];
         exec('apt-get --version 2> /dev/null', $stdout, $resultApt);
         exec('dpkg --version 2> /dev/null', $stdout, $resultDpkg);
         $this->isDebianSystem = $resultDist && $resultRel && $resultApt && $resultDpkg;
     }
 }
コード例 #22
0
 public function __construct(IOInterface $io, Composer $composer, PluginInterface $plugin, Filesystem $filesystem = null)
 {
     $this->wordpressPlugin = $plugin;
     parent::__construct($io, $composer, self::PACKAGE_TYPE, $filesystem);
 }
コード例 #23
0
 /**
  * Initializes library installer.
  *
  * @param IOInterface $io       io instance
  * @param Composer    $composer
  * @param string      $type     package type that this installer handles
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'pear-library')
 {
     parent::__construct($io, $composer, $type);
 }
コード例 #24
0
 /**
  * {@inheritDoc}
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'library', Filesystem $filesystem = null)
 {
     // Create imscp config
     $this->imscpConfig = new iMSCPConfig();
     parent::__construct($io, $composer, 'imscp-addon', $filesystem);
 }
コード例 #25
0
ファイル: PluginInstaller.php プロジェクト: Flesh192/magento
 /**
  * Initializes Plugin installer.
  *
  * @param IOInterface $io
  * @param Composer    $composer
  * @param string      $type
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'library')
 {
     parent::__construct($io, $composer, 'composer-plugin');
     $this->installationManager = $composer->getInstallationManager();
 }
コード例 #26
0
ファイル: Installer.php プロジェクト: vv-team/foodo
 /**
  * Initializes Magento Module installer
  *
  * @param \Composer\IO\IOInterface $io
  * @param \Composer\Composer $composer
  * @param string $type
  * @throws \ErrorException
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'magento-module')
 {
     parent::__construct($io, $composer, $type);
     $this->initializeVendorDir();
     $this->annoy($io);
     $extra = $composer->getPackage()->getExtra();
     if (isset($extra['magento-root-dir']) || ($rootDirInput = $this->defaultMagentoRootDir)) {
         if (isset($rootDirInput)) {
             $extra['magento-root-dir'] = $rootDirInput;
         }
         $dir = rtrim(trim($extra['magento-root-dir']), '/\\');
         $this->magentoRootDir = new \SplFileInfo($dir);
         if (!is_dir($dir) && $io->askConfirmation('magento root dir "' . $dir . '" missing! create now? [Y,n] ')) {
             $this->initializeMagentoRootDir($dir);
             $io->write('magento root dir "' . $dir . '" created');
         }
         if (!is_dir($dir)) {
             $dir = $this->vendorDir . "/{$dir}";
             $this->magentoRootDir = new \SplFileInfo($dir);
         }
     }
     if (isset($extra['modman-root-dir'])) {
         $dir = rtrim(trim($extra['modman-root-dir']), '/\\');
         if (!is_dir($dir)) {
             $dir = $this->vendorDir . "/{$dir}";
         }
         if (!is_dir($dir)) {
             throw new \ErrorException("modman root dir \"{$dir}\" is not valid");
         }
         $this->modmanRootDir = new \SplFileInfo($dir);
     }
     if (isset($extra['magento-deploystrategy'])) {
         $this->_deployStrategy = (string) $extra['magento-deploystrategy'];
         if ($this->_deployStrategy !== "copy") {
             $io->write("<warning>Warning: Magento 2 is not tested with \"{$this->_deployStrategy}\" deployment strategy. It may not function properly.</warning>");
         }
     }
     if ((is_null($this->magentoRootDir) || false === $this->magentoRootDir->isDir()) && $this->_deployStrategy != 'none') {
         $dir = $this->magentoRootDir instanceof \SplFileInfo ? $this->magentoRootDir->getPathname() : '';
         $io->write("<error>magento root dir \"{$dir}\" is not valid</error>", true);
         $io->write('<comment>You need to set an existing path for "magento-root-dir" in your composer.json</comment>', true);
         $io->write('<comment>For more information please read about the "Usage" in the README of the installer Package</comment>', true);
         throw new \ErrorException("magento root dir \"{$dir}\" is not valid");
     }
     if (isset($extra['magento-force'])) {
         $this->isForced = (bool) $extra['magento-force'];
     }
     if (isset($extra['magento-deploystrategy'])) {
         $this->setDeployStrategy((string) $extra['magento-deploystrategy']);
     }
     if (!empty($extra['auto-append-gitignore'])) {
         $this->appendGitIgnore = true;
     }
     if (!empty($extra['path-mapping-translations'])) {
         $this->_pathMappingTranslations = (array) $extra['path-mapping-translations'];
     }
 }
 /**
  * Constructor.
  *
  * @param RunonceManager $runonceManager The run once manager to use.
  *
  * @param IOInterface    $inputOutput    The input/output abstraction to use.
  *
  * @param Composer       $composer       The composer instance.
  *
  * @param string         $type           The typename this installer is responsible for.
  *
  * @param Filesystem     $filesystem     The file system instance.
  */
 public function __construct(RunonceManager $runonceManager, IOInterface $inputOutput, Composer $composer, $type, Filesystem $filesystem = null)
 {
     parent::__construct($inputOutput, $composer, $type, $filesystem);
     $this->runonceManager = $runonceManager;
 }
コード例 #28
0
 public final function __construct(IOInterface $io, Composer $composer, $type, Filesystem $filesystem)
 {
     parent::__construct($io, $composer, $type, $filesystem);
 }
 /**
  * Initializes library installer.
  *
  * @param IOInterface $io
  * @param Composer    $composer
  * @param string      $type
  */
 public function __construct(IOInterface $io, Composer $composer, $type = 'library')
 {
     parent::__construct($io, $composer, $type);
     $this->rfs = new RemoteFilesystem($io);
 }
コード例 #30
0
ファイル: Installer.php プロジェクト: mihaildev/yiicomposer
 public function __construct(IOInterface $io, Composer $composer, $type = 'library', Filesystem $filesystem = null)
 {
     $this->yiiPaths = self::getYiiPaths($composer);
     parent::__construct($io, $composer, $type, $filesystem);
 }