autoload

package
v0.0.0-...-532670f Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package autoload provides functionality related to PHP Composer autoloading

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPSR4Map

func GetPSR4Map(a *Autoload) (map[string]string, bool)

GetPSR4Map returns the PSR-4 map as a string to path mapping

func RemovePSR4

func RemovePSR4(a *Autoload, namespace string) bool

RemovePSR4 removes a PSR-4 namespace mapping

func SetPSR4

func SetPSR4(a *Autoload, namespace, path string)

SetPSR4 sets a PSR-4 namespace mapping

Types

type Autoload

type Autoload struct {
	PSR0        interface{} `json:"psr-0,omitempty"`
	PSR4        interface{} `json:"psr-4,omitempty"`
	Classmap    []string    `json:"classmap,omitempty"`
	Files       []string    `json:"files,omitempty"`
	ExcludeFrom []string    `json:"exclude-from-classmap,omitempty"`
}

Autoload defines how the package should be autoloaded

Jump to

Keyboard shortcuts

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