Comments (4)
@mgrundkoetter agree
anyway it's time to avoid the annotation and esp. the reflection stuff, as this has several speed implications.
from social_stream.
Just as a side note, the "public still gets reflection-set" is no longer true, at least in master branch of TYPO3. It's still equally not recommended to make a public property with @inject
since you're just moving the rule-breaking problem to a too-visible problem.
But whatever you do, you definitely want to use ObjectManager to make your instances.
from social_stream.
@mgrundkoetter please do not use the @inject
annotation ...
https://twitter.com/NamelessCoder/status/935808807510462465
Did you know that public property plus inject annotation still equals property gets set via Reflection? As in: even if you make it public, Extbase will not assign it as such. See https://t.co/E29KPXt6ej. Unfortunately, https://t.co/kBdnxX05ae is still true.
— Claus Due (@NamelessCoder) 29. November 2017
from social_stream.
@kaystrobach interesting point. As a lot of extensions (like news) still rely on Extbase DI, the object manager should be used nevertheless to not break this "feature" (and others) in other classes. So using GeneralUtility::makeInstance()
is still not correct and should be replaced by ObjectManager::get()
for anything else than the ObjectManager
itself.
from social_stream.
Related Issues (11)
- Avoid file_get_contents()
- Facebook API version should be configurable
- Basic template examples should be included HOT 1
- Usage of realurl without domain records HOT 1
- Don't rely on direct cURL calls
- Publication workflow HOT 1
- Remove duplication of code HOT 1
- Facebook API returns only preserved params
- Use EXT:news import service
- Too few arguments to function Socialstream\SocialStream\Controller\Wizard\TokenController::mainAction(), 1 passed and exactly 2 expected HOT 2
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 social_stream.