Skip to content

Release 2.0.0

Compare
Choose a tag to compare
@Nyholm Nyholm released this 16 Oct 13:44
· 5 commits to master since this release
b3a5408

Version 2 comes with a new definition was a DSN really is. It supports functions and a greater variety of DSN formats.

Changed

The Nyholm\Dsn class has been replaced with Nyholm\Dsn\DsnParser. To get a Dsn
object:

// Before
$dsn = new \Nyholm\DSN('mysql://localhost');

// After
$dsn = \Nyholm\Dsn\DsnParser::parse('mysql://localhost');

See change log for more changes