Upload files to 'includes'

This commit is contained in:
2022-09-24 06:28:07 +00:00
parent 186f9d43fc
commit e9d431635d
536 changed files with 61227 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<?php
/**
* This file is part of the POMO package.
*/
namespace POMO\Streams;
/**
* Reads the contents of the file in the beginning.
*
* @author Danilo Segan <danilo@kvota.net>
*/
class CachedFileReader extends StringReader implements StreamInterface
{
public function __construct($filename)
{
parent::__construct();
$this->_str = file_get_contents($filename);
if (false === $this->_str) {
return false;
}
$this->_pos = 0;
}
}