Skip to content

Commit

Permalink
Moved the class constants from Url implementation to Url interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Brecht-Precht committed May 2, 2016
1 parent 07e45fc commit 02e1057
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
class Url implements UrlInterface
{

const URL_SCHEME_SEPARATOR = '://';
const URL_CREDENTIALS_SEPARATOR = ':';
const URL_AUTHENTICATION_SEPARATOR = '@';
const URL_PORT_SEPARATOR = ':';
const URL_QUERYSTRING_SEPARATOR = '?';
const URL_QUERY_SEPARATOR = '&';
const URL_FRAGMENT_SEPARATOR = '#';

/**
* @var string
*/
Expand Down
8 changes: 8 additions & 0 deletions src/UrlInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
interface UrlInterface
{

const URL_SCHEME_SEPARATOR = '://';
const URL_CREDENTIALS_SEPARATOR = ':';
const URL_AUTHENTICATION_SEPARATOR = '@';
const URL_PORT_SEPARATOR = ':';
const URL_QUERYSTRING_SEPARATOR = '?';
const URL_QUERY_SEPARATOR = '&';
const URL_FRAGMENT_SEPARATOR = '#';

/**
* Url constructor.
*
Expand Down

0 comments on commit 02e1057

Please sign in to comment.