Skip to content

Commit

Permalink
remove symfony dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ziwot committed Nov 30, 2024
1 parent 41be34e commit 3a4647e
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 371 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,5 @@ cs-fix: ##@QA run fixer
test: ##@QA run tests
vendor/bin/phpunit --testdox

test-i: ##@QA run integration tests
vendor/bin/phpunit --testdox --testsuite integration

test-u: ##@QA run unit tests
vendor/bin/phpunit --testdox --testsuite unit
26 changes: 0 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,32 +55,6 @@ RPC clients generated with [jane](https://jane.readthedocs.io/en/latest/document

The open api files are taken from [the official Tezos repo](https://gitlab.com/tezos/tezos/-/tree/master/docs/api).

### Symfony

#### Enable the Bundle

enable the bundle by adding it to the list of registered bundles
in the `config/bundles.php` file of your project:

```php
// config/bundles.php

return [
// ...
Bzzhh\Pezos\Bridge\Symfony\BzzhhPezosBundle::class => ['all' => true],
];
```

#### Configuration

Configure your host:

```yaml
# config/packages/bzzhh_pezos.yaml
bzzhh_pezos:
rpc_host: https://mainnet-tezos.giganode.io/
```
## Dev workflow

1. Launch services with `make up`
Expand Down
121 changes: 59 additions & 62 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,62 @@
{
"name": "bzzhh/pezos",
"description": "Tezos library",
"type": "library",
"license": "MIT",
"keywords": [
"tezos"
],
"autoload": {
"psr-4": {
"Bzzhh\\Pezos\\": "src/",
"Bzzhh\\Pezos\\Generated\\Shell\\": "generated/shell",
"Bzzhh\\Pezos\\Generated\\Proto\\": "generated/proto",
"Bzzhh\\Pezos\\Generated\\Mempool\\": "generated/mempool"
"name": "bzzhh/pezos",
"description": "Tezos library",
"type": "library",
"license": "MIT",
"keywords": [
"tezos"
],
"autoload": {
"psr-4": {
"Bzzhh\\Pezos\\": "src/",
"Bzzhh\\Pezos\\Generated\\Shell\\": "generated/shell",
"Bzzhh\\Pezos\\Generated\\Proto\\": "generated/proto",
"Bzzhh\\Pezos\\Generated\\Mempool\\": "generated/mempool"
},
"files": [
"src/_bootstrap.php"
]
},
"files": [
"src/_bootstrap.php"
]
},
"autoload-dev": {
"psr-4": {
"Bzzhh\\Pezos\\Tests\\": "tests/"
}
},
"require": {
"php": "^8.1",
"ext-sodium": "*",
"tuupola/base58": "^2.1",
"simplito/elliptic-php": "^1.0",
"symfony/config": "^5.3|^6.0",
"symfony/dependency-injection": "^5.3|^6.0",
"symfony/http-kernel": "^5.3|^6.0",
"jane-php/open-api-runtime": "^7.5"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"phpunit/phpunit": "^10",
"vimeo/psalm": "^5.8",
"symfony/var-dumper": "^5.2",
"php-http/client-common": "^2.3",
"php-http/message": "^1.11",
"php-http/discovery": "^1.13",
"nyholm/psr7": "^1.4",
"php-http/curl-client": "^2.2",
"jane-php/open-api-3": "^7.5"
},
"archive": {
"exclude": [
"*",
".*",
"*/",
"!/src/*",
"!/generated/*",
"!/composer.json",
"!/README.md"
]
},
"config": {
"allow-plugins": {
"php-http/discovery": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
"autoload-dev": {
"psr-4": {
"Bzzhh\\Pezos\\Tests\\": "tests/"
}
},
"require": {
"php": "^8.1",
"ext-sodium": "*",
"tuupola/base58": "^2.1",
"simplito/elliptic-php": "^1.0",
"jane-php/open-api-runtime": "^7.5"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"phpunit/phpunit": "^10",
"vimeo/psalm": "^5.8",
"symfony/var-dumper": "^5.2",
"php-http/client-common": "^2.3",
"php-http/message": "^1.11",
"php-http/discovery": "^1.13",
"nyholm/psr7": "^1.4",
"php-http/curl-client": "^2.2",
"jane-php/open-api-3": "^7.5"
},
"archive": {
"exclude": [
"*",
".*",
"*/",
"!/src/*",
"!/generated/*",
"!/composer.json",
"!/README.md"
]
},
"config": {
"allow-plugins": {
"php-http/discovery": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
3 changes: 0 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
<testsuite name="unit">
<directory>./tests/Unit</directory>
</testsuite>
<testsuite name="integration">
<directory>./tests/Integration</directory>
</testsuite>
</testsuites>
<source>
<include>
Expand Down
11 changes: 0 additions & 11 deletions src/Bridge/Symfony/BzzhhPezosBundle.php

This file was deleted.

30 changes: 0 additions & 30 deletions src/Bridge/Symfony/DependencyInjection/BzzhhPezosExtension.php

This file was deleted.

25 changes: 0 additions & 25 deletions src/Bridge/Symfony/DependencyInjection/Configuration.php

This file was deleted.

48 changes: 0 additions & 48 deletions src/Bridge/Symfony/Resources/config/services.xml

This file was deleted.

41 changes: 0 additions & 41 deletions src/Bridge/Symfony/RpcFactory.php

This file was deleted.

Loading

0 comments on commit 3a4647e

Please sign in to comment.