X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fvalidator%2FTests%2FFixtures%2FFilesLoader.php;fp=vendor%2Fsymfony%2Fvalidator%2FTests%2FFixtures%2FFilesLoader.php;h=a4d6a6ab474a8c44c149bcd6fca0ac823a707fbe;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/symfony/validator/Tests/Fixtures/FilesLoader.php b/vendor/symfony/validator/Tests/Fixtures/FilesLoader.php new file mode 100644 index 000000000..a4d6a6ab4 --- /dev/null +++ b/vendor/symfony/validator/Tests/Fixtures/FilesLoader.php @@ -0,0 +1,39 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Validator\Tests\Fixtures; + +use Symfony\Component\Validator\Mapping\Loader\FilesLoader as BaseFilesLoader; +use Symfony\Component\Validator\Mapping\Loader\LoaderInterface; + +abstract class FilesLoader extends BaseFilesLoader +{ + protected $timesCalled = 0; + protected $loader; + + public function __construct(array $paths, LoaderInterface $loader) + { + $this->loader = $loader; + parent::__construct($paths); + } + + protected function getFileLoaderInstance($file) + { + ++$this->timesCalled; + + return $this->loader; + } + + public function getTimesCalled() + { + return $this->timesCalled; + } +}