phar-io / gnupg

A thin wrapper around the gnupg binary, mimicking the pecl/gnupg api
https://phar.io
Other
8 stars 2 forks source link

Class aliasing #1

Closed GrahamCampbell closed 4 years ago

GrahamCampbell commented 5 years ago

Hi there. Thanks for this library. The use of class aliasing seems a bit non-standard, at least it stood out to me anyway.

Would you accept a PR to change this so that this library has it's own GnupgInterface, and then two adapters that implement it, the factory chooses between, rather than have the binary fallback implementation pretend to be the PHP one? (Would require a new major release of this package.)