Files
w4rpservices/vendor/symfony/routing/Tests/Loader/FileLocatorStub.php
2018-10-15 00:37:28 -05:00

18 lines
381 B
PHP

<?php
namespace Symfony\Component\Routing\Tests\Loader;
use Symfony\Component\Config\FileLocatorInterface;
class FileLocatorStub implements FileLocatorInterface
{
public function locate($name, $currentPath = null, $first = true)
{
if (0 === strpos($name, 'http')) {
return $name;
}
return rtrim($currentPath, '/').'/'.$name;
}
}