Comments (2)
That's a good idea.
But one disadvantage would be, that you have to define the LayerCollectorConfig add the end (should be fine with a note in the documentation), if you want to reference the other layers by the variable.
So should be have both options?
$secondLayer = Layer::withName('second')->collectors(
// by string
LayerConfig::create('first'),
);
$firstLayer = Layer::withName('first')->collectors(
DirectoryConfig::create('./src'),
);
$thirdLayer = Layer::withName('thirs')->collectors(
// by variable
LayerConfig::create($firstLayer),
);
from deptrac.
Yeah, absolutely. What I like about this approach is that it would make it much harder to make cyclic layer dependencies. I have more notes on PHP Config ergonomics as I just ported a relatively large project from YAML to PHP in the past few days.
from deptrac.
Related Issues (20)
- Next Release: Reduce the distribution to just one method for the next release HOT 11
- Collector for excluding the layer in which it is specified. HOT 3
- Ambiguous of @internal HOT 1
- Cache directory for Cache File not created automatically HOT 2
- Error message when using anonymous readonly class in php 8.3 HOT 3
- Nullable IntersectionType error HOT 2
- PHP 8.3 typed constants cause syntax error HOT 5
- Generating image: Argument ($hiddenLayers) must be of type array null given HOT 2
- New Release HOT 5
- Deptrac does not recognize type aliases HOT 3
- Option to ignore baseline in graphviz output
- Dependabot overfloods this repository HOT 2
- Support for typed const - PHP 8.3 HOT 24
- Add support for mermaid formatters HOT 4
- Referencing non-existing layer in depfile emits no error, but breaks the referencing layer HOT 2
- PHP 8.3 new override attribute HOT 2
- Add ability to disable "Parsing File" output HOT 2
- Allow usage of debug:unassigned in CI or add `--fail-on-unassigned`
- Ability to disable `@internal` feature HOT 4
- `@template-covariant` type always appears in Uncovered HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deptrac.