public static function factory(ApplicationServerInterface $applicationServer, ExtractorNodeInterface $configuration)
    {

        // create a new reflection class instance
        $reflectionClass = new \ReflectionClass($configuration->getType());

        // initialize the container configuration with the base directory and pass it to the thread
        $params = array($applicationServer->getInitialContext(), $configuration);

        // create and append the thread instance to the internal array
        return $reflectionClass->newInstanceArgs($params);
    }
public static function factory(ApplicationServerInterface $applicationServer, ExtractorNodeInterface $configuration)
    {

        // create a new reflection class instance
        $reflectionClass = new \ReflectionClass($configuration->getType());

        // initialize the container configuration with the base directory and pass it to the thread
        $params = array($applicationServer->getInitialContext(), $configuration);

        // create and append the thread instance to the internal array
        return $reflectionClass->newInstanceArgs($params);
    }
public static function factory ( ApplicationServerInterface $ applicationServer , ExtractorNodeInterface $ configuration ) { // create a new reflection class instance $ reflectionClass = new \ ReflectionClass ( $ configuration -> getType ( ) ) ; // initialize the container configuration with the base directory and pass it to the thread $ params = array ( $ applicationServer -> getInitialContext ( ) , $ configuration ) ; // create and append the thread instance to the internal array return $ reflectionClass -> newInstanceArgs ( $ params ) ; }
Factory method to create a new PHAR extractor instance.

@param \AppserverIo\Psr\ApplicationServer\ApplicationServerInterface $applicationServer The application server instance
@param \AppserverIo\Appserver\Core\Api\Node\ExtractorNodeInterface   $configuration     The extractor configuration

@return void
Factory method to create a new PHAR extractor instance .