gamringer/php-pkcs11

Support overloading provided base classes

Opened this issue · 0 comments

As discussed in #17

Doing something like

$foo = new OverloadedKey($session);

instead of

$foo = $session->generateKey(...);

would allow adding extra functionality or overloading methods.

This could be achieved by providing a __construct() method in all objects currently output by factory methods.