public function AbstractProxy::setActive

Sets the active flag.

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

@internal

Parameters

Boolean $flag:

Throws

\LogicException

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/Proxy/AbstractProxy.php, line 94

Class

AbstractProxy
AbstractProxy.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Proxy

Code

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