config

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Container *ContainerConfig
	Psr4      Psr4Map
	VendorDir string
}

func NewConfig

func NewConfig() *Config

func (*Config) LoadPsr4Map

func (c *Config) LoadPsr4Map()

type ContainerConfig

type ContainerConfig struct {
	WorkspaceRoot    string
	ContainerXMLPath string
	Roots            []string
	BundleRoots      map[string][]string
	ServiceClasses   map[string]string
	ServiceAliases   map[string]string
}

func NewContainerConfig

func NewContainerConfig() *ContainerConfig

func (*ContainerConfig) LoadFromXML

func (c *ContainerConfig) LoadFromXML()

Populates the Config.

func (*ContainerConfig) ResolveServiceId

func (c *ContainerConfig) ResolveServiceId(serviceID string) (string, bool)

Resolves a service ID to its class name.

type Psr4Map

type Psr4Map map[string][]string

func GetPsr4Map

func GetPsr4Map(autoloadFile string) (Psr4Map, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL