You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates a DateTimeZone instance using configuration from the container.
public __invoke(\Psr\Container\ContainerInterface$container): \DateTimeZone
If the container does not provide a ConfigInterface, or the configuration does not specify a timezone,
this method SHALL return a DateTimeZone using the current default timezone.
If the configuration value for DateTimeZone::class is already a DateTimeZone instance, it SHALL be returned as-is.
Otherwise, the value SHALL be used as the timezone identifier string.
Parameters:
Parameter
Type
Description
$container
\Psr\Container\ContainerInterface
the container from which to retrieve configuration