Core Theme Components

ContainerFactory

Retrieves the configured container object. In production, the container is cached and stored at the path defined by kernel.cache_dir.

ContainerFactory::dumpAutoload should be set as a composer script.

"post-autoload-dump": [
  "NewsHour\\WPCoreThemeComponents\\Containers\\ContainerFactory::dumpAutoload"
]
Tags
final

Table of Contents

$instance  : ContainerInterface
get()  : ContainerInterface

Properties

Methods

get()

public static get() : ContainerInterface
Return values
ContainerInterface

Search results