Browse: Home / Classes /

Container

Container

LearnDash Container class.


Description #


Source #

File: src/Core/Container.php


Changelog #

Changelog
Version Description
4.5.0 Introduced.


Methods #

  • __call — Defer all other calls to the container object.
  • __construct — Container constructor.
  • bind — Binds an interface, a class or a string slug to an implementation.
  • get — Finds an entry of the container by its identifier and returns it.
  • has — Returns true if the container can return an entry for the given identifier.
  • singleton — Binds an interface a class or a string slug to an implementation and will always return the same instance.