Lines Matching refs:DsnParser
22 use Nyholm\Dsn\DsnParser;
24 $dsn = DsnParser::parse('http://127.0.0.1/foo/bar?key=value');
59 There are two methods for parsing; `DsnParser::parse()` and `DsnParser::parseFunc()`.
63 use Nyholm\Dsn\DsnParser;
65 $dsn = DsnParser::parse('scheme://127.0.0.1/foo/bar?key=value');
72 If functions are supported (like in the Symfony Mailer component) we can use `DsnParser::parseFunc(…
75 use Nyholm\Dsn\DsnParser;
77 $func = DsnParser::parseFunc('failover(sendgrid://KEY@default smtp://127.0.0.1)');
85 use Nyholm\Dsn\DsnParser;
87 $func = DsnParser::parseFunc('foo(udp://localhost failover:(tcp://localhost:61616,tcp://remotehost:…
99 When using `DsnParser::parseFunc()` on a string that does not contain any DSN functions,
104 when using `DsnParser::parseFunc()`.
107 use Nyholm\Dsn\DsnParser;
109 $func = DsnParser::parseFunc('smtp://127.0.0.1');
115 $func = DsnParser::parseFunc('dsn(smtp://127.0.0.1)');
126 use Nyholm\Dsn\DsnParser;
130 DsnParser::parse('foobar');
157 use Nyholm\Dsn\DsnParser;
159 $dsn = DsnParser::parse('scheme://127.0.0.1/foo/bar?key=value');