for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\ViewEngine;
use Core\ViewEngineInterface;
class Redirect implements ViewEngineInterface
{
private $url = '';
public function __construct($settings = [])
// dummy
}
public function set($key, $value)
public function getVariables()
return [];
public function file($url)
$this->url = $url;
public function getFile()
return $this->url;
public function render()
header('location: ' . $this->url);