Comments (8)
Hello :-),
What would be the semantics of unresolve
?
from core.
Sorry, my brain is off today.
I saw resolve
, so I think unresolve
.
Dynamically, I were say $hoa->setRoots($data, [$application=null, [$hoa=null]])
.
But a global function like resolved
deserves a discussion.
I need this action for one project.
from core.
You need it once but when starting, so this is important for the user experience. I agree that a function alias would be welcome, but not a global one. What about something like:
$core = Hoa\Core::getInstance();
$core->setApplicationRoot(…);
$core->setDataRoot(…);
$core->setLibraryRoot(…);
Maybe, an alternative would be:
$core = Hoa\Core::getInstance();
$core->setRoots(['application' => …, 'data' => …, 'library' => …]);
I don't like your proposal setRoots($data, $application, $library)
because the root names do not appear when reading the code.
from core.
I dislike the first option because each root setting calls Core->setProtocol()
.
If I'm wrong, the first option is easy understanding.
The second option is short and efficient.
Usually we are setting up the roots once per project, well the call can be "technical" (grow up the code complexity in the statement).
Who writes it? :p
from core.
You're right. The first proposal, with set*Root
methods, will call the setProtocol
method each time, which is bad. So we are agree for the setRoots(Array)
proposal?
from core.
Yeap!
from core.
@Hywan can we close this issue as Hoa\Core is no longer maintained ?
from core.
Sure!
@1e1 If this issue is still valid with the Hoa\Protocol
library, please, reopen it there.
from core.
Related Issues (20)
- I'm getting this error *"Hoa main file (Core.php) must be included once."* HOT 7
- mark as deprecated HOT 1
- Support \U, \u, \L, \l, \E and \e in the zFormat HOT 1
- Do we need to cache `extension_loaded` result? HOT 3
- Use a trait for Hoa\Core\Event
- Hoa\Core should NEVER edit php configuration. HOT 12
- Hint IDEs about property. HOT 3
- hoa break when installed globaly HOT 3
- The 'hoa' binary should not be installed with Core HOT 19
- Add a `home` command to open http://hoa-project.net HOT 1
- Setlocal issues in core HOT 4
- PHP7 compatibility
- `Exception::uncaught` can receive a `BaseException` in PHP7.0
- Update `Consistency::isKeyword` for PHP7.0 HOT 1
- Protocol: `stream_stat` is not very verbose when failing
- Does Hoa Core need the "files" load approach in Composer? HOT 14
- Hoa/Core errors when loaded twice HOT 39
- Hoa shouldn't initialize before being used HOT 7
- [meta] Split the core HOT 48
- [meta] Split the core, next HOT 4
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 core.