![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/eloquent/composer-npm-bridge/src/ |
<?php namespace Eloquent\Composer\NpmBridge; use Composer\IO\IOInterface; /** * Creates NPM bridges. */ class NpmBridgeFactory { /** * Create a new NPM bridge factory. * * @return self The newly created factory. */ public static function create(): self { return new self( new NpmVendorFinder(), NpmClient::create() ); } /** * Construct a new NPM bridge factory. * * @access private * * @param NpmVendorFinder $vendorFinder The vendor finder to use. * @param NpmClient $client The client to use. */ public function __construct( NpmVendorFinder $vendorFinder, NpmClient $client ) { $this->vendorFinder = $vendorFinder; $this->client = $client; } /** * Construct a new Composer NPM bridge plugin. * * @param IOInterface $io The i/o interface to use. */ public function createBridge(IOInterface $io): NpmBridge { return new NpmBridge($io, $this->vendorFinder, $this->client); } private $vendorFinder; private $client; }