Use composer as application autoloader

This commit is contained in:
Romain Neutron
2013-01-18 17:47:25 +01:00
parent 358cdddcc6
commit 2069d40544
784 changed files with 1031 additions and 1806 deletions

View File

@@ -0,0 +1,36 @@
<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2012 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
*
* @package Setup
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
class Setup_ConstraintsIterator implements IteratorAggregate
{
protected $constraints = array();
public function __construct(Array $constraints)
{
$this->constraints = $constraints;
}
public function add(Setup_Constraint $constraint)
{
$this->constraints[] = $constraint;
}
public function getIterator()
{
return new ArrayIterator($this->constraints);
}
}