25 $this->directories = array();
34 $this->directories[] = $directory;
52 $parts[] =
$file->getContent();
55 return implode(
"\n", $parts);
66 foreach ($this->directories as $directory) {
67 $parts[] = (string) $directory;
70 return implode(
',', $parts);
88 return substr((
string)
$file, strlen((
string) $directory));
100 foreach ($this->directories as $directory) {
101 foreach ($directory as
$file) {
104 if (!isset($paths[$relative])) {
105 $paths[$relative] =
$file;
110 return array_values($paths);
foreach($mandatory_scripts as $file) $timestamp
Coalesces multiple directories together into one merged resource.
getContent()
Returns the content of the resource.
__toString()
Returns a string to uniquely identify the current resource.
isFresh($timestamp)
Checks if a timestamp represents the latest resource.
addDirectory(IteratorResourceInterface $directory)
getRelativeName(ResourceInterface $file, ResourceInterface $directory)
Returns the relative version of a filename.
__construct($directories)
getFileResources()
Performs the coalesce.
An exception for terminatinating execution or to throw for unit testing.
A resource is something formulae can be loaded from.
A resource is something formulae can be loaded from.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file