On Tue, Aug 4, 2015 at 4:26 AM, Peter Lind <peter.e.l...@gmail.com> wrote: > On 4 August 2015 at 10:13, Lauri Kenttä <lauri.ken...@gmail.com> wrote: >> >> On 2015-08-03 23:54, Scott Arciszewski wrote: >>> >>> $AES = new \PCO\Symmetric('openssl:cipher=AES-128'); >> >> >> It would be great if you could just ask for cipher=AES-128 without >> explicitly specifying the provider (openssl). >> > > Even better would be splitting arguments up. There's not much point to > multi-valued arguments, they're just harder to parse/memorize. > If you need a common constructor, use a configuration object instead of a > made-up string format. > > Apart from that, thumbs up on this! > > > -- > <hype> > WWW: plphp.dk / plind.dk > CV: careers.stackoverflow.com/peterlind > LinkedIn: plind > Twitter: kafe15 > </hype>
Hi Peter, It's not really a "made-up string format", in the sense that it has a precedent (PDO). Hopefully my response to Lauri makes this design decision seem more reasonable. Regards, Scott Arciszewski Chief Development Officer Paragon Initiative Enterprises <https://paragonie.com> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php