composerSubprojectPaths example


  public function getPathReposForType($workspace_directory$subdir) {
    // Find the Composer items that we want to be path repos.     /** @var \SplFileInfo[] $path_repos */
    $path_repos = Composer::composerSubprojectPaths($workspace_directory$subdir);

    $data = [];
    foreach ($path_repos as $path_repo) {
      $json_file = new JsonFile($path_repo->getPathname());
      $json = $json_file->read();
      $data[$json['name']] = $path_repo->getPath();
    }
    return $data;
  }

  public function provideTemplateCreateProject() {
    
Home | Imprint | This part of the site doesn't use cookies.