Преглед изворни кода

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