Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Markus Staab
@staabm
Hi@
Marco Pivetta
@Ocramius
Hi @staabm
dantleech
@dantleech
morning
is there a way to get the spl_object_hash of a proxied object ?
Marco Pivetta
@Ocramius
@dantleech depends on the proxy type. Only wrappers have 2 instances of the same object
If you play with identity, then you should just use ghost objects: safe
dantleech
@dantleech
oh cool.. I am using the GhostFactory but I though it was wrapped
but the class names not meant to be the same right?
ok, i think i get it..
dantleech
@dantleech
btw, out of interest -- what was the reason to not make the Inflector static?
Marco Pivetta
@Ocramius
You don't make anything static unless you are sure that it is the only possible truth
Rob Frawley 2nd
@robfrawley
@Ocramius So, for the time being my organization needs lazy loading of some services in Symfony (using Symfony 2.7 with the the proxy-bridge and your project, ProxyManager) - I've forked your latest master and merged malukenho's variadic feature branch, so for the time being i'm replying on setting composer to reference my own fork for this feature. But forks suck. ;-) What can I do to expedite this getting merged into your master?
Jefersson Nathan
@malukenho
@robfrawley wait until the final of next week, and we can get this done.
Marco Pivetta
@Ocramius
@robfrawley I merged the PR for dealing with variadics, but it will only land in 2.x. If you want to get it into 1.x, then you'll need to backport it for now.
Rob Frawley 2nd
@robfrawley
@malukenho: Excellent: Thanks!
Matt Lehner
@mlehner
is it possible to inject methods into the generated proxy? I want to do something similar to Doctrine's proxy objects where calling getId() does not trigger initialization of the valueholder.
Marco Pivetta
@Ocramius
@mlehner did you look at the new ghost objects in 2.x? They do that
(not lazy load things)
@mlehner see doctrine/doctrine2#1241
Rob Frawley 2nd
@robfrawley
@Ocramius Am I the only one who's objects break horribly still sometimes, as it applies to variadics, when trying to use lazy loaded services in Symfony?
Marco Pivetta
@Ocramius
@robfrawley no? :-) Report an issue?
Rob Frawley 2nd
@robfrawley
@Ocramius Sorry, been horribly busy and just starting to use this new Git chat service here. ;-)
It'll be a priority for me in the coming months, so you'll likely see some bug reports and/or pull requests before the end of the year.
Marco Pivetta
@Ocramius
@robfrawley no problem: I also join gitter only when I get notifications via mail
Thanks if you report/fix anything :-) I really need zendframework/zend-code to get better at this stuff
Asked @steverhoades about it at ZendCon, he may work on it in the near future
(mainly moving to AST-based stuff
Alabme
@Alabme
@Ocramius Hi, I have some issue on live system with ProxyManager. I've tried to figure this out but I can't see what i'm doing wrong.
Message: Fatal Error (E_COMPILE_ERROR): require_once(): Failed opening required './data/cache/ProxyManagerGeneratedProxy__PM__OffersInfrastructureOffersServiceDeleteLoadOfferServiceGeneratedbd3bd5a5f5bff638fbf938a95b07962d.php' message: require_once(): Failed opening required './data/cache/ProxyManagerGeneratedProxy__PM__OffersInfrastructureOffersServiceDeleteLoadOfferServiceGeneratedbd3bd5a5f5bff638fbf938a95b07962d.php' file: ./vendor/ocramius/proxy-manager/src/ProxyManager/Autoloader/Autoloader.php line: 67
any idea?
Jefersson Nathan
@malukenho
@Alabme the file ./data/cache/ProxyManagerGeneratedProxy__PM__OffersInfrastructureOffersServiceDeleteLoadOfferServiceGeneratedbd3bd5a5f5bff638fbf938a95b07962d.php exists?
Alabme
@Alabme
It happens while deploying codes to production, than everything in data/cache is removed
also it's only occurs while we have about 10req/s
Jefersson Nathan
@malukenho
@Alabme could you please open an issue and provide the maximum details about it?
Alabme
@Alabme
@malukenho ok, will do it, thx for response
Marco Pivetta
@Ocramius
@Alabme please also mention the PHP version in use