Skip to content

Commit 695ec79

Browse files
authored
Merge pull request #14 from Divergence/develop
Initial alpha of 1.1
2 parents daaf78a + 0ebb1d1 commit 695ec79

78 files changed

Lines changed: 2897 additions & 4651 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ vendor
55
build/*
66
phpDocumentor.phar
77
docs
8-
.vscode
8+
.vscode
9+
composer.lock

.php_cs.dist

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
$header = <<<EOF
4+
This file is part of the Divergence package.
5+
6+
(c) Henry Paradiz <henry.paradiz@gmail.com>
7+
8+
For the full copyright and license information, please view the LICENSE
9+
file that was distributed with this source code.
10+
EOF;
11+
312
$finder = PhpCsFixer\Finder::create()
413
//->exclude('somedir')
514
->in(__DIR__)
@@ -11,12 +20,20 @@ return PhpCsFixer\Config::create()
1120
'@PSR2' => true,
1221
'array_syntax' => ['syntax' => 'short'],
1322
'trailing_comma_in_multiline_array' => true,
23+
'no_trailing_comma_in_singleline_array' => true,
1424
'ternary_operator_spaces' => true,
1525
'trim_array_spaces' => true,
1626
'ordered_imports' => [
1727
'sortAlgorithm' => 'length'
1828
],
19-
'ordered_class_elements' => true
29+
'ordered_class_elements' => true,
30+
'indentation_type' => true,
31+
'header_comment' => [
32+
'header' => $header,
33+
'comment_type' => 'PHPDoc',
34+
'location' => 'after_open',
35+
'separate' => 'none',
36+
]
2037
])
21-
->setFinder($finder)
38+
->setFinder($finder)
2239
;

.travis.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
language: php
22
php:
3-
- '7.1'
4-
- '7.2'
3+
- '7.4'
4+
5+
services:
6+
- mysql
57

68
addons:
79
apt:
8-
sources:
9-
- mysql-5.7-trusty
10+
#sources:
11+
# - mysql-5.7-trusty
1012
packages:
1113
- mysql-server
1214
- mysql-client
@@ -19,7 +21,7 @@ before_install:
1921

2022
install:
2123
# Install composer packages
22-
- travis_retry composer update --no-interaction --no-suggest
24+
#- travis_retry composer update --no-interaction --no-suggest
2325
- travis_retry composer install --no-interaction --no-suggest
2426
# Install coveralls.phar
2527
- wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar -O coveralls.phar
@@ -39,9 +41,9 @@ after_success:
3941
# Submit coverage report to codecov.io
4042
- bash <(curl -s https://codecov.io/bash)
4143

42-
# Tell Travis CI to monitor only 'master' branch
43-
branches:
44-
only: master
44+
# Tell Travis CI to monitor only 'release' branch
45+
#branches:
46+
# only: release
4547

4648
# Specify where the cache is so you can delete it via the travis-ci web interface
4749
cache:

bootstrap/app.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<?php
2+
/**
3+
* This file is part of the Divergence package.
4+
*
5+
* (c) Henry Paradiz <henry.paradiz@gmail.com>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
210
use Divergence\App as App;
311

4-
App::init(realpath(__DIR__.'/../'));
12+
$app = new App(realpath(__DIR__.'/../'));

bootstrap/autoload.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
<?php
2+
/**
3+
* This file is part of the Divergence package.
4+
*
5+
* (c) Henry Paradiz <henry.paradiz@gmail.com>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
210
define('DIVERGENCE_START', microtime(true));
311
require(__DIR__.'/../vendor/autoload.php');

bootstrap/router.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
<?php
2-
Divergence\Controllers\SiteRequestHandler::handleRequest();
2+
/**
3+
* This file is part of the Divergence package.
4+
*
5+
* (c) Henry Paradiz <henry.paradiz@gmail.com>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
$app->handleRequest();

composer.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@
1313
}
1414
],
1515
"require": {
16-
"php": ">=7.1",
17-
"dwoo/dwoo": "1.3.6",
16+
"php": ">=7.4",
17+
"twig/twig": "*",
1818
"filp/whoops": "*",
19-
"symfony/var-dumper": "^3.0"
19+
"symfony/var-dumper": "^4.0",
20+
"psr/http-server-handler": "^1.0",
21+
"psr/http-message": "^1.0",
22+
"guzzlehttp/psr7": "^1.6",
23+
"twig/extra-bundle": "^3.0"
2024
},
2125
"autoload": {
2226
"psr-4": {
@@ -32,8 +36,8 @@
3236
"require-dev": {
3337
"phpunit/phpunit": "^7.0",
3438
"friendsofphp/php-cs-fixer": "*",
35-
"mikey179/vfsStream": "1.6.5",
36-
"fzaninotto/faker": "1.7.1"
39+
"mikey179/vfsstream": "^1.6",
40+
"fzaninotto/faker": "^1.9"
3741
},
3842
"suggest": {
3943
"divergence/cli": "Lets you initialize a new project as well as create, edit, and test database configurations via CLI."

0 commit comments

Comments
 (0)