From 69243e97f1c55687936728ecade5263d85a6184f Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Tue, 21 Jun 2022 21:29:01 +0300 Subject: [PATCH] =?UTF-8?q?[+]=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D1=81=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 18 ++++++++++++++++++ composer.lock | 18 ++++++++++++++++++ core/bootstrap.php | 2 ++ templates/.htaccess | 1 + 4 files changed, 39 insertions(+) create mode 100644 composer.json create mode 100644 composer.lock create mode 100644 templates/.htaccess diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..0b82aa5 --- /dev/null +++ b/composer.json @@ -0,0 +1,18 @@ +{ + "name": "rsgrinko/delta", + "description": "Delta Framework", + "type": "project", + "license": "MIT", + "autoload": { + "psr-4": { + "Core\\": "core/lib/" + } + }, + "authors": [ + { + "name": "rsgrinko", + "email": "rsgrinko@gmail.com" + } + ], + "require": {} +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..2f9bddb --- /dev/null +++ b/composer.lock @@ -0,0 +1,18 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "76495c532399aad23bb670f0202d18a2", + "packages": [], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.3.0" +} diff --git a/core/bootstrap.php b/core/bootstrap.php index dc5e7ac..300a233 100644 --- a/core/bootstrap.php +++ b/core/bootstrap.php @@ -9,6 +9,8 @@ if (session_status() == PHP_SESSION_NONE) { session_start(); } + require_once __DIR__ . '/../vendor/autoload.php'; + ob_start(function($buffer) { try { Template::set('CLEAR_CACHE_LINK_NAME', 'Сброс файлового кэша'); diff --git a/templates/.htaccess b/templates/.htaccess new file mode 100644 index 0000000..c0ae62c --- /dev/null +++ b/templates/.htaccess @@ -0,0 +1 @@ +#test \ No newline at end of file