for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of Symplify
* Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
*/
namespace Symplify\PHP7_Sculpin\Renderable\Routing\Route;
use Symplify\PHP7_Sculpin\Contract\Renderable\Routing\Route\RouteInterface;
use Symplify\PHP7_Sculpin\Renderable\File\AbstractFile;
use Symplify\PHP7_Sculpin\Renderable\File\File;
final class IndexRoute implements RouteInterface
{
public function matches(AbstractFile $file) : bool
return $file->getBaseName() === 'index';
}
public function buildOutputPath(AbstractFile $file) : string
return 'index.html';
public function buildRelativeUrl(AbstractFile $file) : string
return '/';