Can I work with code like:
new \Controllers\ServiceController()->fbdump();
so i don't need to create var to execute a single method?
Yes, but you need to add a set of brackets, since -> has a higher priority than new :
->
new
(new \Controllers\ServiceController)->fbdump();
Source: https://habr.com/ru/post/1238741/More articles:Filter products on multiple children in Firebase - javascriptFirebase - click an object in a nested list of objects - javascriptHow to find the location of the source code of an inline Python method? - pythonSpring throws an exception for undefined bean - javaFilter products based on child element in Firebase - javascriptMutate multiple / sequential columns (with dplyr or R base) - rHow to create MapIcon event in UWP? - c #How to emulate Chrome browser for mobile devices in the firefox developer editor - firefox-addonVisual Studio 2015 - Can I create a client side development project that supports chat support and AngularJS intellisense? - visual-studiopermission from Asus (startup manager), miui (security center) - androidAll Articles