enum

PointClickEngine::Core::ServiceLifetime

Inherits Enum < Comparable < Value < Object

Service lifetime determines how instances are created and cached

Constants

Singleton = 0

Single instance shared across the entire application

Scoped = 1

New instance for each scope (e.g., per game session)

Transient = 2

New instance each time the service is resolved

Instance methods

scoped?

Returns true if this enum value equals Scoped

Source
singleton?

Returns true if this enum value equals Singleton

Source
transient?

Returns true if this enum value equals Transient

Source