浏览代码

Added composer + Polyfills

* Configured gitignore
* Inited composer
* Added "symfony/polyfill"
Roman Kelesidis 2 年之前
父节点
当前提交
916f4e0178
共有 4 个文件被更改,包括 15 次插入0 次删除
  1. 4 0
      .gitignore
  2. 3 0
      acp/index.php
  3. 5 0
      composer.json
  4. 3 0
      index.php

+ 4 - 0
.gitignore

@@ -0,0 +1,4 @@
+.idea
+.vscode
+composer.lock
+vendor

+ 3 - 0
acp/index.php

@@ -24,6 +24,9 @@
 	$mcache = new Memcache;
 	$mcache->connect('127.0.0.1', 11211) or exit('Ошибка подключения Memcache');
 
+    // Composer
+    require(ROOT.'vendor/autoload.php');
+
 	// Настройки
 	include(DATA.'config.php');
 	include(DATA.'mysql.php');

+ 5 - 0
composer.json

@@ -0,0 +1,5 @@
+{
+  "require": {
+    "symfony/polyfill": "*"
+  }
+}

+ 3 - 0
index.php

@@ -25,6 +25,9 @@
 	$mcache = new Memcache;
 	$mcache->connect('127.0.0.1', 11211) or exit('Ошибка подключения Memcache');
 
+    // Composer
+    require(ROOT.'vendor/autoload.php');
+
 	// Настройки
 	include(DATA.'config.php');
 	include(DATA.'engine.php');