diff --git a/.travis.yml b/.travis.yml index 2c0b006..68918e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,6 @@ sudo: false cache: directories: - $HOME/.composer/cache - - $HOME/build/jolicode/ApacheTikaBundle/Tests/bin env: global: @@ -16,20 +15,19 @@ env: before_script: - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi - - \[ -f $HOME/build/jolicode/ApacheTikaBundle/Tests/bin/tika-app.jar \] || wget -O $HOME/build/jolicode/ApacheTikaBundle/Tests/bin/tika-app.jar http://archive.apache.org/dist/tika/tika-app-1.11.jar - - \[ -f $HOME/build/jolicode/ApacheTikaBundle/Tests/bin/tika-server.jar \] || wget -O $HOME/build/jolicode/ApacheTikaBundle/Tests/bin/tika-server.jar -nc http://archive.apache.org/dist/tika/tika-server-1.11.jar + - \[ -f $HOME/build/jolicode/ApacheTikaBundle/Tests/bin/tika-app.jar \] || wget -O $HOME/build/jolicode/ApacheTikaBundle/Tests/bin/tika-app.jar http://archive.apache.org/dist/tika/tika-app-1.21.jar + - \[ -f $HOME/build/jolicode/ApacheTikaBundle/Tests/bin/tika-server.jar \] || wget -O $HOME/build/jolicode/ApacheTikaBundle/Tests/bin/tika-server.jar -nc http://archive.apache.org/dist/tika/tika-server-1.21.jar - java -jar $HOME/build/jolicode/ApacheTikaBundle/Tests/bin/tika-server.jar & - sleep 5 matrix: include: - - php: hhvm - - php: 5.4 - - php: 5.5 - - php: 5.6 - env: deps=high - php: 7.0 env: deps=low + - php: 7.1 + - php: 7.2 + - php: 7.3 + env: deps=high install: - if [ "$deps" = "low" ]; then composer --prefer-source --prefer-lowest update; fi; diff --git a/DependencyInjection/ApacheTikaExtension.php b/DependencyInjection/ApacheTikaExtension.php index 5aebde8..513416e 100644 --- a/DependencyInjection/ApacheTikaExtension.php +++ b/DependencyInjection/ApacheTikaExtension.php @@ -40,6 +40,7 @@ public function load(array $configs, ContainerBuilder $container) )); } + $client->setPublic(true); $container->setDefinition('apache_tika.client', $client); } } diff --git a/Makefile b/Makefile index 446fce0..385925a 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,13 @@ cs: ./vendor/fabpot/php-cs-fixer/php-cs-fixer fix --verbose start_tika_server: - \[ -f Tests/bin/tika-server.jar \] || wget -O Tests/bin/tika-server.jar http://archive.apache.org/dist/tika/tika-server-1.11.jar + \[ -f Tests/bin/tika-server.jar \] || wget -O Tests/bin/tika-server.jar http://archive.apache.org/dist/tika/tika-server-1.21.jar @make -s stop java -jar Tests/bin/tika-server.jar & sleep 10 get_tika_app: - \[ -f Tests/bin/tika-app.jar \] || wget -O Tests/bin/tika-app.jar http://archive.apache.org/dist/tika/tika-app-1.11.jar + \[ -f Tests/bin/tika-app.jar \] || wget -O Tests/bin/tika-app.jar http://archive.apache.org/dist/tika/tika-app-1.21.jar test: get_tika_app start_tika_server ./vendor/bin/phpunit diff --git a/composer.json b/composer.json index 45f492f..6e9e11b 100644 --- a/composer.json +++ b/composer.json @@ -14,14 +14,12 @@ "require": { "php": "~5.4|^7.0", "vaites/php-apache-tika": "~0.3", - "symfony/http-kernel": "~2.3|~3.0", - "symfony/framework-bundle": "~2.3|~3.0" + "symfony/http-kernel": "^2.8|^3.0|^4.0", + "symfony/framework-bundle": "^2.8|^3.0|^4.0" }, "require-dev": { "fabpot/php-cs-fixer": "^1.11", - "phpunit/phpunit": "~4.8|~5.1", - "symfony/config": "~2.3|~3.0", - "symfony/dependency-injection": "~2.3|~3.0" + "phpunit/phpunit": "~4.8|~5.1" }, "autoload": { "psr-4": {