Skip to content

Commit 73b166b

Browse files
committed
feat(docker-api-client): move api client code to own package, change namespace and package name
1 parent bf7c339 commit 73b166b

File tree

849 files changed

+150
-153785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

849 files changed

+150
-153785
lines changed

.php-cs-fixer.cache

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.php-cs-fixer.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
[
99
__DIR__ . '/src',
1010
__DIR__ . '/tests',
11-
__DIR__ . '/generated',
12-
__DIR__ . '/examples',
1311
]
1412
)
1513
->append(

bin/docker-api

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ declare(strict_types=1);
44

55
use Symfony\Component\Console\Application;
66
use WebProject\DockerApiClient\Command\ListContainersCommand;
7-
use WebProject\DockerApiClient\Command\SynchronizeHostsCommand;
7+
use WebProject\DockerHostsFileSync\Command\SynchronizeHostsCommand;
88

99
if (!is_dir(dirname(__DIR__) . '/vendor')) {
1010
throw new LogicException('Dependencies are missing. Try running "composer install".');
@@ -17,7 +17,7 @@ if (!is_file(dirname(__DIR__) . '/vendor/autoload_runtime.php')) {
1717
require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
1818

1919
return static function (array $context) {
20-
$application = new Application('Docker API', '@package_version@');
20+
$application = new Application('Docker hosts file sync', '@package_version@');
2121
$application->add(new SynchronizeHostsCommand());
2222
$application->add(new ListContainersCommand());
2323
$application->setDefaultCommand('synchronize-hosts');

codeception.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace: WebProject\DockerApiClient\Tests
1+
namespace: WebProject\DockerHostsFileSync\Tests
22
support_namespace: Support
33
paths:
44
tests: tests

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"name": "webproject-xyz/docker-api-client",
2+
"name": "webproject-xyz/docker-hostsfile-sync",
33
"description": "A PHP docker API client with a cli tool to sync your hosts file with running docker containers to add hostnames for every network like '172.16.238.100 jwilder-proxy.docker jwilder-proxy.proxyNet jwilder.proxyNet proxy.local.proxyNet' ",
44
"license": "MIT",
55
"type": "library",
66
"homepage": "https://www.webproject.xyz",
77
"require": {
88
"php": "~8.3.0 || ~8.4.0",
9+
"ext-filter": "*",
910
"jane-php/open-api-runtime": "^7.8.1",
1011
"phpdocumentor/reflection-docblock": "^5.6.1",
1112
"phpstan/phpdoc-parser": "^2.1",
@@ -14,7 +15,8 @@
1415
"symfony/property-access": "^7.2.3",
1516
"symfony/property-info": "^7.2.3",
1617
"symfony/runtime": "^7.2.3",
17-
"symfony/serializer": "^7.2.4"
18+
"symfony/serializer": "^7.2.4",
19+
"webproject-xyz/docker-api-client": "^1.1"
1820
},
1921
"require-dev": {
2022
"codeception/codeception": "^5.2.1",
@@ -27,13 +29,12 @@
2729
},
2830
"autoload": {
2931
"psr-4": {
30-
"WebProject\\DockerApiClient\\": "src/",
31-
"WebProject\\DockerApi\\Library\\Generated\\": "generated/"
32+
"WebProject\\DockerHostsFileSync\\": "src/"
3233
}
3334
},
3435
"autoload-dev": {
3536
"psr-4": {
36-
"WebProject\\DockerApiClient\\Tests\\": "tests/"
37+
"WebProject\\DockerHostsFileSync\\Tests\\": "tests/"
3738
}
3839
},
3940
"bin": [

composer.lock

Lines changed: 63 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/list-containers.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)