Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Marco Pivetta
@Ocramius
because it uses get_class() all over the place. This might work with doctrine/orm:dev-master, but I didn't try
Bram Van der Sype
@Brammm
interesting
Marco Pivetta
@Ocramius
I'd probably use a postLoad listener in the ORM instead
Bram Van der Sype
@Brammm
yeah, I’ll see if I can do anything with the lifecycle callbacks and a proxy maybe.
indeed.
Marco Pivetta
@Ocramius
The ORM will still try reading into your VO, so it might not work at all
charlieman
@charlieman
Hello, I'm getting this error Uncaught Error: Call to undefined method PhpAmqpLib\Channel\AMQPChannel::__destruct() in /srv/app/vendor/ocramius/proxy-manager/src/ProxyManager/GeneratorStrategy/EvaluatingGeneratorStrategy.php(68) : eval()'d code:42
is there a way to let ProxyManager know the class doesn't have a destructor?
charlieman
@charlieman
I'm checking the ReflectionClass for that class and getMethods doesn't return __destruct
Marco Pivetta
@Ocramius
Dtor should only be generated if there is a dtor. Can you use the file writer generator strategy and check the generated code please?
Also, what version are you running? Upgraded to latest?
charlieman
@charlieman
@Ocramius I'm using 2.0.4 because the server has php 7.0, also version 3.1.0 of zend-code and 1.2.0 of package-version
I'll try to use the file writer and get back
Marco Pivetta
@Ocramius
You'll need to upgrade to the latest version before asking for help, heh
Gytis Šk.
@gskema
Hello, anyone here ?
Gytis Šk.
@gskema
Release 2.2.0 says "PHP 7.1 support has been dropped.", but there is no commit link.
I see now that composer.json requires ^7.2, but it would still be interesting to see why this was changed.
Marco Pivetta
@Ocramius
@gskema yeah, it was done as part of generic upgrades. I always drop compatibility with older versions of all dependencies on a regular basis in order to reduce the amount of maintenance work, and in order to allow everyone to start using new features.
Gytis Šk.
@gskema
ok, thanks. I just put it ^2.0 in composer.json, it will select the correct version based on PHP version.
Marco Pivetta
@Ocramius
yup, be aware that I'll likely release 3.0 with 7.3 support only
Gytis Šk.
@gskema
Hello, I am using AccessInterceptorValueHolderFactory
I would like to intercept all methods, what is the correct way to do that? I tried using setMethodPrefixInterceptor but it only matches exact method names
Gytis Šk.
@gskema
@Ocramius
Gytis Šk.
@gskema
OK, so I assume prefix means "pre-exec" and suffix means "post-exec", no method name str matching. I guess I will use ReflectionClass to register interceptors for all methods
Marco Pivetta
@Ocramius

what is the correct way to do that?

You'd need to use (new ReflectionClass())->getMethods() and use that to pre-fill those arrays

and yes, this came up in the past: it is the correct way to do it :)
Gytis Šk.
@gskema
That's exactly what I did. Thanks @Ocramius
Volkan Ulukut
@Seldar
It seems there is no support for php 7.3. Any plans to release a version for 7.3?
Marco Pivetta
@Ocramius
@Seldar ^2.2 supports "php": "^7.2"