static function create($name, $parameters = array(), $repositoryPath = false, $repositoryID = false) { $parameters['name'] = $name; $handler = new eZPackage($parameters, $repositoryPath); // New packages always use local repository if ($repositoryID === false) { $repositoryID = 'local'; } $repositoryInformation = $handler->repositoryInformation($repositoryID); if ($repositoryPath !== false) { $repositoryInformation['path'] = $repositoryPath; } $handler->setCurrentRepositoryInformation($repositoryInformation); return $handler; }