Skip to content

Commit

Permalink
Merge pull request #3 from elightbo/feature/starting-with-silex
Browse files Browse the repository at this point in the history
Feature/starting with silex
  • Loading branch information
elightbo committed Nov 20, 2015
2 parents c95d567 + f4548ed commit 15208be
Show file tree
Hide file tree
Showing 11 changed files with 1,801 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
.DS_Store
vendor/
10 changes: 1 addition & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
language: php
php:
- 5.5
- 5.6
- 7.0
- hhvm
# whitelist
branches:
only:
Expand All @@ -13,10 +11,4 @@ before_script:
- composer install
- echo 'error_reporting = E_ALL & ~E_STRICT' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini

script: phpunit --configuration tests/phpunit.xml --coverage-text

matrix:
allow_failures:
- php: 5.6
- php: 7.0
- php: hhvm
script: phpunit --configuration tests/phpunit.xml --coverage-text
9 changes: 9 additions & 0 deletions app/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
require_once __DIR__.'/../vendor/autoload.php';

$app = new Silex\Application();
$app['debug'] = true;

$app->post('/family', 'FamilyTask\Controller\FamilyController::createAction');

return $app;
15 changes: 15 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"require": {
"silex/silex": "~1.3"
},
"require-dev": {
"phpunit/phpunit": "5.0.*",
"symfony/browser-kit": "^2.7",
"symfony/css-selector": "^2.7"
},
"autoload": {
"psr-4": {
"FamilyTask\\": "src/FamilyTask/"
}
}
}
Loading

0 comments on commit 15208be

Please sign in to comment.