Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,4 @@

Ray.Di is DI and AOP framework for PHP inspired by [Google Guice](https://github.com/google/guice/wiki).

## Binding snapshots

Collect a module's composed bindings explicitly when diagnostics are needed:

```php
use Ray\Bindings\Bindings;

$bindings = new Bindings();
$module->accept($bindings);

$markdown = $bindings->toMarkdown();
$html = $bindings->toHtml($composerLock, 'prod-app', $vendorDir);
```

The snapshot is captured when `accept()` is called. Later module changes and
Injector processing do not change it; visiting another module with the same
`Bindings` instance replaces the snapshot. It contains bindings composed by
the application module through `bind()`, `install()`, and `override()`, without
Injector built-ins or bindings discovered later during object resolution.

`Injector` does not create `bindings.md` automatically. Applications that
previously read that generated file should use `toMarkdown()` or `toHtml()` as
shown above. The explicit `Ray\Bindings\BindingsMarkdown` file writer and the
`bindings-html` command remain available for file-based workflows.

https://ray-di.github.io
66 changes: 0 additions & 66 deletions bin/bindings-html

This file was deleted.

14 changes: 6 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"email": "akihito.koriyama@gmail.com"
}
],
"bin": ["bin/bindings-html"],
"require": {
"php": "^8.2",
"koriym/null-object": "^1.0",
Expand All @@ -21,7 +20,8 @@
"phpunit/phpunit": "^11.0"
},
"suggest": {
"ray/compiler": "For compiling dependency injection container to improve performance"
"ray/compiler": "For compiling dependency injection container to improve performance",
"ray/object-visual-grapher": "For visualizing composed bindings and the object graph"
},
"config": {
"sort-packages": true,
Expand All @@ -32,14 +32,12 @@
},
"autoload": {
"psr-4": {
"Ray\\Di\\": ["src/di", "src-deprecated/di"],
"Ray\\Bindings\\": "src-bindings/"
"Ray\\Di\\": ["src/di", "src-deprecated/di"]
}
},
"autoload-dev": {
"psr-4": {
"Ray\\Di\\": ["tests/di", "tests/di/Fake/"],
"Ray\\Bindings\\": "tests-bindings/"
"Ray\\Di\\": ["tests/di", "tests/di/Fake/"]
}
},
"scripts": {
Expand All @@ -51,8 +49,8 @@
"php -dextension=pcov.so -r \"extension_loaded('pcov') || (fwrite(STDERR, 'pcov required for mutation testing (dev-only). Install: pecl install pcov'.PHP_EOL) && exit(1));\"",
"php -dextension=pcov.so -d pcov.enabled=1 vendor/bin/infection --threads=2 --min-msi=90 --min-covered-msi=90 --no-progress"
],
"cs": ["vendor-bin/tools/vendor/squizlabs/php_codesniffer/bin/phpcs --standard=./phpcs.xml src tests src-bindings tests-bindings"],
"cs-fix": ["vendor-bin/tools/vendor/squizlabs/php_codesniffer/bin/phpcbf src tests src-bindings tests-bindings"],
"cs": ["vendor-bin/tools/vendor/squizlabs/php_codesniffer/bin/phpcs --standard=./phpcs.xml src tests"],
"cs-fix": ["vendor-bin/tools/vendor/squizlabs/php_codesniffer/bin/phpcbf src tests"],
"clean": ["vendor-bin/tools/vendor/phpstan/phpstan/phpstan clear-result-cache", "vendor-bin/tools/vendor/vimeo/psalm/psalm --clear-cache", "rm -rf tests/tmp/*.php"],
"sa": ["vendor-bin/tools/vendor/vimeo/psalm/psalm -m -c psalm.xml --show-info=false", "vendor-bin/tools/vendor/phpstan/phpstan/phpstan analyse -c phpstan.neon --no-progress "],
"metrics": ["@test", "vendor-bin/tools/vendor/phpmetrics/phpmetrics/bin/phpmetrics --report-html=build/metrics --exclude=Exception --log-junit=build/junit.xml --junit=build/junit.xml src"],
Expand Down
73 changes: 0 additions & 73 deletions docs/bindings/bindings.css

This file was deleted.

Loading
Loading