Skip to content

Commit d842cde

Browse files
authored
Merge pull request #2 from cherry-framework/develop
Develop
2 parents cdb99d9 + ee4ff6a commit d842cde

File tree

7 files changed

+43
-1570
lines changed

7 files changed

+43
-1570
lines changed

CHANGELOG.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
# Cherry-core Changelog
22

3-
## [v1.0.0](https://github.com/ABGEO07/cherry-core/releases/tag/v1.0.0 "v1.0.0") (2019-03-29)
3+
## [v1.5.0](https://github.com/cherry-framework/core/releases/tag/v1.5.0 "v1.5.0") (2019-04-21)
4+
5+
- Cherry [Router](https://github.com/cherry-framework/router) and [Logger](https://github.com/cherry-framework/logger)
6+
was removed from Kernel class.
7+
8+
## [v1.0.0](https://github.com/cherry-framework/core/releases/tag/v1.0.0 "v1.0.0") (2019-03-29)
49
#### The first stable version
510

611
- Package available on: `composer require cherry-project/core`
712

813
- Core contains all cherry-project sub-packages
9-
- [Request](https://github.com/ABGEO07/cherry-request)
10-
- [Response](https://github.com/ABGEO07/cherry-response)
11-
- [Router](https://github.com/ABGEO07/cherry-router)
12-
- [Templater](https://github.com/ABGEO07/cherry-templater)
13-
- [Logger](https://github.com/ABGEO07/cherry-logger)
14+
- [Request](https://github.com/cherry-framework/request)
15+
- [Response](https://github.com/cherry-framework/response)
16+
- [Router](https://github.com/cherry-framework/router)
17+
- [Templater](https://github.com/cherry-framework/templater)
18+
- [Logger](https://github.com/cherry-framework/logger)

Cherry/Kernel.php

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
namespace Cherry;
1515

16-
use Cherry\Routing\Router;
17-
1816
/**
1917
* Application Kernel class.
2018
*
@@ -28,9 +26,6 @@ class Kernel
2826
{
2927
private $_appRoot;
3028

31-
public $router;
32-
public $logger;
33-
3429
/**
3530
* Kernel constructor.
3631
*
@@ -42,20 +37,7 @@ public function __construct($appRoot)
4237

4338
$this->_appRoot = __ROOT__;
4439

45-
$this->run();
46-
}
47-
48-
/**
49-
* Run application.
50-
*
51-
* @return void
52-
*/
53-
public function run()
54-
{
5540
$this->_readConfig();
56-
57-
$this->router = new Router();
58-
$this->logger = new Logger('app', LOGS_PATH);
5941
}
6042

6143
/**
@@ -109,4 +91,4 @@ private function _readConfig()
10991
define($k, __ROOT__ . '/' . $v);
11092
}
11193
}
112-
}
94+
}

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
# Cherry-Core
22
The Cherry-project Core
33

4-
[![GitHub license](https://img.shields.io/github/license/abgeo07/cherry-core.svg)](https://github.com/ABGEO07/cherry-core/blob/master/LICENSE)
4+
[![GitHub license](https://img.shields.io/github/license/cherry-framework/core.svg)](https://github.com/cherry-framework/core/blob/master/LICENSE)
55

6-
[![GitHub release](https://img.shields.io/github/release/abgeo07/cherry-core.svg)](https://github.com/ABGEO07/cherry-core/releases)
6+
[![GitHub release](https://img.shields.io/github/release/cherry-framework/core.svg)](https://github.com/cherry-framework/core/releases)
77

8-
[![Packagist Version](https://img.shields.io/packagist/v/cherry-project/core.svg "Packagist Version")](https://packagist.org/packages/cherry-core/request "Packagist Version")
8+
[![Packagist Version](https://img.shields.io/packagist/v/cherry-project/core.svg "Packagist Version")](https://packagist.org/packages/cherry-project/core "Packagist Version")
99

1010
------------
1111

1212
This is core for Cherry-Project that contains Cherry [Request](https://github.com/ABGEO07/cherry-request),
1313
[Response](https://github.com/ABGEO07/cherry-response), [Router](https://github.com/ABGEO07/cherry-router),
14-
[Templater](https://github.com/ABGEO07/cherry-templater) and [Logger](https://github.com/ABGEO07/cherry-logger).
14+
and [Templater](https://github.com/ABGEO07/cherry-templater).
1515

16-
In root of your application you must define main file and call application Core Kernel class:
16+
In root of your application you must define main file and call application Core Kernel
17+
and Router classes:
1718

1819
```php
19-
<?php
20-
2120
require_once __DIR__ . '/../vendor/autoload.php';
2221

22+
use Cherry\Routing\Router;
23+
2324
$kernel = new Cherry\Kernel(__DIR__);
25+
26+
$router = new Router();
2427
```
2528

2629
`Kernel` class takes only one argument - your application root path.

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
"minimum-stability": "dev",
1717
"require": {
1818
"php": ">=5.6.0",
19-
"cherry-project/router": "dev-master",
20-
"cherry-project/templater": "dev-master",
21-
"cherry-project/logger": "dev-master",
19+
"cherry-project/router": "^1.0",
20+
"cherry-project/templater": "^1.0",
2221
"ext-json": "*"
2322
},
2423
"autoload": {

0 commit comments

Comments
 (0)