Doctrine\Common\Cache\PhpFileCache::__construct PHP Method

__construct() public method

public __construct ( $directory, $extension = self::EXTENSION, $umask = 2 )
    public function __construct($directory, $extension = self::EXTENSION, $umask = 02)
    {
        parent::__construct($directory, $extension, $umask);
        self::$emptyErrorHandler = function () {
        };
    }

Usage Example

Beispiel #1
0
 /**
  * Constructor.
  *
  * @param string      $directory The cache directory.
  * @param string|null $extension The cache file extension.
  *
  * @throws \InvalidArgumentException
  */
 public function __construct($directory, $extension = null)
 {
     if (!is_dir($directory)) {
         $this->createDirectory($directory);
     }
     parent::__construct($directory, $extension);
 }
All Usage Examples Of Doctrine\Common\Cache\PhpFileCache::__construct