for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bone\Controller;
use Bone\I18n\I18nAwareInterface;
use Bone\Server\Traits\HasSiteConfigTrait;
use Bone\I18n\Traits\HasTranslatorTrait;
use Bone\View\Traits\HasViewTrait;
use Bone\View\ViewAwareInterface;
use Bone\Server\SiteConfigAwareInterface;
use Psr\Http\Message\ResponseInterface;
class Controller implements I18nAwareInterface, ViewAwareInterface, SiteConfigAwareInterface
{
use HasSiteConfigTrait;
use HasTranslatorTrait;
use HasViewTrait;
/**
* @param ResponseInterface $response
* @param string $layout
*/
public function responseWithLayout(ResponseInterface $response, string $layout): ResponseInterface
return $response->withHeader('layout', $layout);
}