Skip to content

Commit

Permalink
Moved all 3rd party libraries to composer
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-torosh committed Oct 10, 2015
1 parent 2ef288c commit 1607cf7
Show file tree
Hide file tree
Showing 625 changed files with 92,891 additions and 121 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# CHANGELOG

## v0.3.2
## v0.4

- Updated Semantic UI to version 2.1.4;

- Fixed bug in \Cms\Scanner;

- Moved all 3rd party libraries to **composer.json**;

- Installation process now requires composer;

- Added Phinx library for database migrations;

## v0.3.1

- Minimized index.php code; Created **YonaCms\Plugin\CheckPoint** plugin for detecting index.php, index.html in Request URI;
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,17 @@ or
composer install
```

### Installing via GitHub
After updating code, run composer update:
```
composer update
```

Just clone the repository:
### Permissions

```
git clone https://github.com/oleksandr-torosh/yona-cms
chmod a+w data -R
chmod a+w web/assets -R
chmod a+w web/img -R
```

[Full installation guide](http://doc.yonacms.com/en/reference/install.html)
Expand All @@ -87,7 +92,8 @@ Current version and updates in [CHANGELOG.md](https://github.com/oleksandr-toros
##Requirements

* php 5.4+
* phalcon 1.3.2+
* phalcon 1.3.4+
* phalcon 2.0.7+
* mysql
* php-intl
* apache (+mod_rewrite) or nginx
5 changes: 3 additions & 2 deletions app/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function run()
$loader->registerNamespaces($config->loader->namespaces->toArray());
$loader->registerDirs([APPLICATION_PATH . "/plugins/"]);
$loader->register();
require_once APPLICATION_PATH . '/../vendor/autoload.php';

// Database
$db = new \Phalcon\Db\Adapter\Pdo\Mysql([
Expand Down Expand Up @@ -201,7 +202,7 @@ private function initView($di)

// Volt
$volt = new \Application\Mvc\View\Engine\Volt($view, $di);
$volt->setOptions(['compiledPath' => APPLICATION_PATH . '/cache/volt/']);
$volt->setOptions(['compiledPath' => APPLICATION_PATH . '/../data/cache/volt/']);
$volt->initCompiler();


Expand Down Expand Up @@ -236,7 +237,7 @@ private function initCache($di)
switch ($config->cache) {
case 'file':
$cache = new \Phalcon\Cache\Backend\File($cacheFrontend, [
"cacheDir" => __DIR__ . "/cache/backend/"
"cacheDir" => APPLICATION_PATH . "/../data/cache/backend/"
]);
break;
case 'memcache':
Expand Down
2 changes: 0 additions & 2 deletions app/cache/backend/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions app/cache/volt/.gitignore

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/modules/Application/Mvc/Helper/CmsCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CmsCache extends Component

private static $instance = null;

const DIR = '/cache/cms/';
const DIR = '/../data/cache/cms/';

public static function getInstance()
{
Expand Down
3 changes: 1 addition & 2 deletions app/modules/Cms/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ class Config
public static function get()
{

$application = include_once APPLICATION_PATH . '/config/' . APPLICATION_ENV . '/application.php';
$application = include_once APPLICATION_PATH . '/config/environment/' . APPLICATION_ENV . '.php';

$config_default = [
'loader' => [
'namespaces' => [
'YonaCMS\Plugin' => APPLICATION_PATH . '/plugins/',
'Application' => APPLICATION_PATH . '/modules/Application',
'Cms' => APPLICATION_PATH . '/modules/Cms',
'Michelf' => APPLICATION_PATH . '/../vendor/php-markdown-lib/Michelf',
],
],
'modules' => [
Expand Down
2 changes: 1 addition & 1 deletion app/plugins/AdminLocalization.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AdminLocalization extends Plugin

public function __construct($config)
{
$file = APPLICATION_PATH . '/translations/admin/' . $config->admin_language . '.php';
$file = APPLICATION_PATH . '/../data/translations/admin/' . $config->admin_language . '.php';
if (!is_file($file)) {
die("file $file not exists");
}
Expand Down
1 change: 0 additions & 1 deletion app/plugins/MobileDetect.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class MobileDetect

public function __construct($session, $view, $request)
{
require_once APPLICATION_PATH . '/../vendor/Mobile_Detect.php';
$detect = new \Mobile_Detect();

$mobile = $request->getQuery('mobile');
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"require": {
"php": ">=5.4",
"ext-intl": "*",
"ext-phalcon": ">=1.3.4"
"ext-phalcon": ">=1.3.4",
"robmorgan/phinx": "dev-master",
"michelf/php-markdown": "*",
"mandrill/mandrill": "1.*",
"mobiledetect/mobiledetectlib": "^2.8"
}
}
Loading

0 comments on commit 1607cf7

Please sign in to comment.