Skip to content

Commit

Permalink
Merge pull request #57 from goetas-webservices/symfony4-support
Browse files Browse the repository at this point in the history
Symfony4 support
  • Loading branch information
goetas authored Feb 16, 2018
2 parents d7e40e3 + 113470c commit 889c7d1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2

matrix:
include:
Expand All @@ -17,8 +19,8 @@ matrix:
before_script:
- pecl install xmldiff
- echo "xdebug.max_nesting_level=1000" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi
- if [[ $TRAVIS_PHP_VERSION != '5.6' ]]; then phpenv config-rm xdebug.ini; fi
- if [[ $TRAVIS_PHP_VERSION = '7.0' ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi
- if [[ $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi
- composer self-update
- composer update $COMPOSER_FLAGS

Expand All @@ -28,5 +30,5 @@ script:

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- if [[ $TRAVIS_PHP_VERSION = '5.6' ]] ; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
- if [[ $TRAVIS_PHP_VERSION = '7.0' ]] ; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"type": "library",
"authors": [
{
"name": "Asmir Mustafic"
"name": "Asmir Mustafic",
"email" : "[email protected]"
}
],
"keywords": [
Expand All @@ -18,13 +19,11 @@
"license": "MIT",
"require": {
"php": "^5.5|^7.0",
"symfony/console": "^2.7|^3.0",
"symfony/dependency-injection": "^2.2|^3.0",
"symfony/config": "^2.2|^3.0",
"symfony/yaml": "^2.1|^3.0",

"goetas-webservices/xsd-reader": "^0.2",
"goetas-webservices/soap-reader": "^0.3",
"symfony/console": "^2.7|^3.0|^4.0",
"symfony/dependency-injection": "^2.2|^3.0|^4.0",
"symfony/yaml": "^2.1|^3.0|^4.0",
"symfony/config": "^2.2|^3.0|^4.0",
"goetas-webservices/xsd-reader": "^0.2|^0.3.1",
"doctrine/inflector": "^1.0",
"zendframework/zend-code": "~2.3",

Expand Down
18 changes: 9 additions & 9 deletions src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,46 @@

<service id="goetas_webservices.xsd2php.schema_reader" public="true" class="GoetasWebservices\XML\XSDReader\SchemaReader" />

<service synthetic="true" public="false" id="goetas_webservices.xsd2php.naming_convention"/>
<service synthetic="true" public="true" id="goetas_webservices.xsd2php.naming_convention"/>
<service synthetic="true" id="logger"/>

<service id="goetas_webservices.xsd2php.converter.php" class="GoetasWebservices\Xsd\XsdToPhp\Php\PhpConverter">
<service id="goetas_webservices.xsd2php.converter.php" class="GoetasWebservices\Xsd\XsdToPhp\Php\PhpConverter" public="true">
<argument id="goetas_webservices.xsd2php.naming_convention" type="service"/>
<call method="setLogger">
<argument type="service" id="logger"></argument>
</call>
</service>

<service id="goetas_webservices.xsd2php.converter.jms" class="GoetasWebservices\Xsd\XsdToPhp\Jms\YamlConverter">
<service id="goetas_webservices.xsd2php.converter.jms" class="GoetasWebservices\Xsd\XsdToPhp\Jms\YamlConverter" public="true">
<argument id="goetas_webservices.xsd2php.naming_convention" type="service"/>
<call method="setLogger">
<argument type="service" id="logger"></argument>
</call>
</service>

<service synthetic="true" id="goetas_webservices.xsd2php.path_generator.php"/>
<service synthetic="true" id="goetas_webservices.xsd2php.path_generator.jms"/>
<service synthetic="true" id="goetas_webservices.xsd2php.path_generator.php" public="true"/>
<service synthetic="true" id="goetas_webservices.xsd2php.path_generator.jms" public="true"/>

<service id="goetas_webservices.xsd2php.path_generator.php.psr4" public="false"
class="GoetasWebservices\Xsd\XsdToPhp\Php\PathGenerator\Psr4PathGenerator"></service>
<service id="goetas_webservices.xsd2php.path_generator.jms.psr4" public="false"
class="GoetasWebservices\Xsd\XsdToPhp\Jms\PathGenerator\Psr4PathGenerator"></service>

<service id="goetas_webservices.xsd2php.writer.php" class="GoetasWebservices\Xsd\XsdToPhp\Writer\PHPWriter">
<service id="goetas_webservices.xsd2php.writer.php" class="GoetasWebservices\Xsd\XsdToPhp\Writer\PHPWriter" public="true">
<argument id="goetas_webservices.xsd2php.class_writer.php" type="service"/>
<argument id="goetas_webservices.xsd2php.php.class_generator" type="service"/>
<argument id="logger" type="service"/>
</service>

<service id="goetas_webservices.xsd2php.class_writer.php" class="GoetasWebservices\Xsd\XsdToPhp\Writer\PHPClassWriter">
<service id="goetas_webservices.xsd2php.class_writer.php" class="GoetasWebservices\Xsd\XsdToPhp\Writer\PHPClassWriter" public="true">
<argument id="goetas_webservices.xsd2php.path_generator.php" type="service"/>
<argument id="logger" type="service"/>
</service>

<service id="goetas_webservices.xsd2php.php.class_generator"
class="GoetasWebservices\Xsd\XsdToPhp\Php\ClassGenerator"></service>
class="GoetasWebservices\Xsd\XsdToPhp\Php\ClassGenerator" public="true"></service>

<service id="goetas_webservices.xsd2php.writer.jms" class="GoetasWebservices\Xsd\XsdToPhp\Writer\JMSWriter">
<service id="goetas_webservices.xsd2php.writer.jms" class="GoetasWebservices\Xsd\XsdToPhp\Writer\JMSWriter" public="true">
<argument id="goetas_webservices.xsd2php.path_generator.jms" type="service"/>
<argument id="logger" type="service"/>
</service>
Expand Down

0 comments on commit 889c7d1

Please sign in to comment.