mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-23 09:13:07 +01:00
Remove redundant existence check in Formwork::loadSite()
This commit is contained in:
parent
9fed590fae
commit
4ade0ec626
@ -11,7 +11,6 @@ use Formwork\Parsers\YAML;
|
||||
use Formwork\Router\Router;
|
||||
use Formwork\Traits\SingletonTrait;
|
||||
use Formwork\Translations\Translations;
|
||||
use Formwork\Utils\FileSystem;
|
||||
use Formwork\Utils\Header;
|
||||
use Formwork\Utils\HTTPRequest;
|
||||
use Formwork\Utils\Str;
|
||||
@ -261,7 +260,6 @@ final class Formwork
|
||||
*/
|
||||
protected function loadSite(): void
|
||||
{
|
||||
FileSystem::assertExists(CONFIG_PATH . 'site.yml');
|
||||
$config = YAML::parseFile(CONFIG_PATH . 'site.yml');
|
||||
$this->site = new Site($config);
|
||||
$this->site->setLanguages($this->languages);
|
||||
|
Loading…
x
Reference in New Issue
Block a user