Skip to content

Commit

Permalink
Merge pull request #6 from triadev/refactoring
Browse files Browse the repository at this point in the history
Refactoring
  • Loading branch information
triadev committed Nov 30, 2018
2 parents e3e9e92 + 238ab22 commit e717f36
Show file tree
Hide file tree
Showing 49 changed files with 92 additions and 3,320 deletions.
7 changes: 0 additions & 7 deletions .scrutinizer.yml
@@ -1,13 +1,6 @@
build:
nodes:
coverage:
services:
elasticsearch: 6.4.0

environment:
variables:
ELASTICSEARCH_PORT: 9200

cache:
directories:
- vendor/
Expand Down
12 changes: 4 additions & 8 deletions README.md
Expand Up @@ -13,9 +13,10 @@
[![Latest development][ico-version-dev]][link-packagist]
[![Monthly installs][ico-downloads-monthly]][link-downloads]

A service provider for laravel to managing data versions in elasticsearch.
A laravel service provider for the elasticsearch php client: https://github.com/elastic/elasticsearch-php

## Supported laravel versions
[![Laravel 5.6][icon-l55]][link-laravel]
[![Laravel 5.6][icon-l56]][link-laravel]
[![Laravel 5.7][icon-l57]][link-laravel]

Expand All @@ -26,11 +27,6 @@ A service provider for laravel to managing data versions in elasticsearch.
[![Elasticsearch 6.3][icon-e63]][link-elasticsearch]
[![Elasticsearch 6.4][icon-e64]][link-elasticsearch]

## Main features
- Migration
- Versioning
- Deploy

## Installation

### Composer
Expand Down Expand Up @@ -63,8 +59,7 @@ If you do find an issue, please feel free to report it with GitHub's bug tracker
Alternatively, fork the project and make a pull request. :)

## Testing
1. docker-compose up
2. ./vendor/phpunit/phpunit/phpunit
>composer test
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
Expand Down Expand Up @@ -95,6 +90,7 @@ The code for LaravelElasticsearchProvider is distributed under the terms of the
[link-downloads]: https://packagist.org/packages/triadev/laravel-elasticsearch-provider/stats
[link-travis]: https://travis-ci.org/triadev/LaravelElasticsearchProvider

[icon-l55]: https://img.shields.io/badge/Laravel-5.5-brightgreen.svg?style=flat-square
[icon-l56]: https://img.shields.io/badge/Laravel-5.6-brightgreen.svg?style=flat-square
[icon-l57]: https://img.shields.io/badge/Laravel-5.7-brightgreen.svg?style=flat-square

Expand Down
5 changes: 2 additions & 3 deletions composer.json
@@ -1,6 +1,6 @@
{
"name": "triadev/laravel-elasticsearch-provider",
"description": "A service provider for laravel to managing data versions in elasticsearch.",
"description": "A laravel service provider for the elasticsearch php client.",
"keywords": ["Elasticsearch", "Laravel", "Lumen"],
"license": "MIT",
"authors": [
Expand All @@ -12,8 +12,7 @@
"require": {
"php": ">=7.1",
"laravel/framework": "5.5.* || 5.6.* || 5.7.*",
"elasticsearch/elasticsearch": "^6.0",
"triadev/laravel-prometheus-exporter": "^1.3"
"elasticsearch/elasticsearch": "^6.0"
},
"require-dev": {
"phpunit/phpunit": "~7.0",
Expand Down
42 changes: 0 additions & 42 deletions docker-compose.yml

This file was deleted.

3 changes: 0 additions & 3 deletions phpunit.xml
Expand Up @@ -15,9 +15,6 @@
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
<exclude>
<directory suffix=".php">./src/Models</directory>
</exclude>
</whitelist>
</filter>
<php>
Expand Down
48 changes: 0 additions & 48 deletions src/Business/AbstractElasticsearch.php

This file was deleted.

82 changes: 0 additions & 82 deletions src/Business/Config/ConfigFacade.php

This file was deleted.

21 changes: 0 additions & 21 deletions src/Business/Helper/Version.php

This file was deleted.

16 changes: 1 addition & 15 deletions src/Config/config.php
Expand Up @@ -5,19 +5,5 @@
'port' => env('ELASTICSEARCH_PORT', 9200),
'scheme' => env('ELASTICSEARCH_SCHEME', 'https'),
'user' => env('ELASTICSEARCH_USER', ''),
'pass' => env('ELASTICSEARCH_PASS', ''),
'deploy' => [
'version' => [
'indices' => []
]
],
'snapshot' => [
'repository' => 'default',
'type' => 'gcs',
'settings' => []
],
'config' => [
'retries' => 2,
'indices' => []
]
'pass' => env('ELASTICSEARCH_PASS', '')
];
60 changes: 0 additions & 60 deletions src/Console/Commands/Alias/Create.php

This file was deleted.

0 comments on commit e717f36

Please sign in to comment.