> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Constructor DirectoryRepository

Namespace: [Phoenix.PlugIns.Repositories](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.PlugIns.Repositories)\
Assembly: Phoenix.PlugIns.dll

## DirectoryRepository(string, IServiceProvider, ILogger\<DirectoryRepository>)

Constructor

```csharp theme={null}
public DirectoryRepository(string dir, IServiceProvider sp, ILogger<DirectoryRepository> logger)

```

### Parameters

`dir` [string](https://learn.microsoft.com/dotnet/api/system.string)

The directory to publish

`sp` [IServiceProvider](https://learn.microsoft.com/dotnet/api/system.iserviceprovider)

The dependency injection service provider

`logger` [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger-1)\<[DirectoryRepository](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.PlugIns.Repositories.DirectoryRepository)>

A logger to use
