lithium\storage\session\strategy\Encrypt::enabled PHP Method

enabled() public static method

Determines if the Mcrypt extension has been installed.
public static enabled ( ) : boolean
return boolean `true` if enabled, `false` otherwise.
    public static function enabled()
    {
        return extension_loaded('mcrypt');
    }

Usage Example

Example #1
0
	public function testEnabled() {
		$this->assertTrue(Encrypt::enabled());
	}