You are here

public function AbstractProxy::setActive in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php \Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy::setActive()

Sets the active flag.

Has no effect under PHP 5.4+ as status is detected automatically in isActive()

@internal

Parameters

bool $flag:

Throws

\LogicException

File

vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php, line 94

Class

AbstractProxy
AbstractProxy.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Proxy

Code

public function setActive($flag) {
  if (PHP_VERSION_ID >= 50400) {
    throw new \LogicException('This method is disabled in PHP 5.4.0+');
  }
  $this->active = (bool) $flag;
}