Skip to content

Commit

Permalink
Merge 5693266 into a81f980
Browse files Browse the repository at this point in the history
  • Loading branch information
albertborsos committed Jan 23, 2019
2 parents a81f980 + 5693266 commit eddaacf
Show file tree
Hide file tree
Showing 13 changed files with 83 additions and 4,761 deletions.
44 changes: 44 additions & 0 deletions .travis.yml
@@ -0,0 +1,44 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3

# to support hhvm
dist: trusty

# faster builds on new travis setup not using sudo
sudo: false

# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache

env:
matrix:
- COMPOSER_OPTIONS="--prefer-lowest --prefer-stable"
- COMPOSER_OPTIONS=""

install:
- travis_retry composer self-update && composer --version
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --prefer-dist --no-interaction

before_script:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
PHPUNIT_FLAGS="--coverage --coverage-xml"
fi
script:
- sh ./phpcs.sh
#- php ./vendor/bin/codecept run unit -d $PHPUNIT_FLAGS

#after_success:
#- php ./vendor/bin/coveralls -v --exclude-no-stmt -c .coveralls.yml
6 changes: 4 additions & 2 deletions README.md
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/albertborsos/yii2-ddd.svg?branch=master)](https://travis-ci.org/albertborsos/yii2-ddd)

DDD Classes for Yii 2.0
=======================
Classes for a Domain-Driven Design inspired workflow with Yii 2.0 Framework
Expand Down Expand Up @@ -97,8 +99,8 @@ class CreateAppService extends AbstractService
$model->load($this->getForm()->attributes, '');

if ($model->save()) {
$this->assignLanguages($model->getId(), $this->getForm()->languages);
$this->setId($model->getId());
$this->assignLanguages($model->id, $this->getForm()->languages);
$this->setId($model->id);

return true;
}
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Expand Up @@ -27,5 +27,11 @@
"albertborsos\\ddd\\tests\\": "tests/",
"albertborsos\\ddd\\tests\\support\\base\\": "tests/_support/base/"
}
}
},
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
}

0 comments on commit eddaacf

Please sign in to comment.