for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Bright Nucleus View Component.
*
* @package BrightNucleus\View
* @author Alain Schlesser <[email protected]>
* @license MIT
* @link http://www.brightnucleus.com/
* @copyright 2016 Alain Schlesser, Bright Nucleus
*/
namespace BrightNucleus\View\Location;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Finder\Finder;
* Class URICollection.
* @since 0.1.1
* @package BrightNucleus\View\Location
class URICollection extends ArrayCollection
{
* Create a new URICollection from a Symfony Finder instance.
* @since 0.1.3
* @param Finder $finder The Finder instance to create the URI collection from.
* @return static New URICollection instance.
public static function fromFinder(Finder $finder)
$elements = array_keys(iterator_to_array($finder));
return new static($elements);
}