Comments (3)
@GreatOwl the pipeline builder is a rather trivial part of the package. There's also no code consuming the builder. What kind of specialised building mechanisms did you have in mind? My initial thought would be, if specialised building capabilities are desired it could just as well be implemented without implementing an interface, or even by extending the current implementation (I'm not a huge fan of extending, but hey). Since the interface of the builder is rather strict, it only accepts callable types, any alternate implementation would probably implement additional methods. When doing to hinting on the builder interface would not be sufficient when consumer said builder. However, maybe you can provide me with some insights into how you use it and how that fits into creating an interface for the builder. I'm always open to feedback.
from pipeline.
@frankdejonge sure!
My initial implementation with modifying the builder was due to the original deficiencies in not having the ability to pass a custom processor. My custom implementation (decorating and creating an interface) allowed me to create a builder that allowed me to wrap every passed stage in a function that provided what I can now do with a custom processor. ie. a short circuit for validation functions.
Since clearly processors resolved this, allow me to stretch the concept a bit. A builder is essentially a collection of stages, which anyone can create, which can build a pipeline from those stages. As being a collection, if it were interfaced and tweaked slightly, you could do collection operations on the stages, merging, intersecting, filtering or reducing of the stages. You could then build the stages once and implement repeatedly in different use cases.
But then again, maybe I too often take to the feeling of everything should be interfaced.
from pipeline.
Done
from pipeline.
Related Issues (20)
- Pipeline should use call_user_func HOT 2
- Add variadic variable to __invoke HOT 4
- Remove InterruptibleProcessor and Rename FingersCrossedProcessor HOT 3
- quick question on the pipe methos HOT 2
- tag new version with processor included
- Never heard of a pattern named pipeline HOT 2
- Isn't process method available on PipelineInterface? It's expected to be there. HOT 5
- [feature request] Inject errorHandler into processor (optional) HOT 1
- [Feature Request] Attach a listener to a pipeline HOT 2
- [Feature Request] Fork-Join HOT 2
- Generator Processor HOT 1
- When to use a PipelineBuilder? HOT 1
- Simple question HOT 6
- windows is ok? HOT 2
- How to use $check in InterruptibleProcessor.php? HOT 1
- PipelineBuilder build returns PipelineBuilderInterface in error HOT 2
- [Feature Request] Lazily retrieve pipeline stages from PSR-11 container HOT 3
- Why do you want to clone the current object when you execute the pipe method? HOT 1
- PipelineInterface does not have a `process` method HOT 1
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 pipeline.