Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/uri-normalization' of https://github.com/denixpo…
Browse files Browse the repository at this point in the history
…rt/zf2 into hotfix/uri-normalization
  • Loading branch information
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 150 deletions.
23 changes: 6 additions & 17 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
<?php

/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
* Zend Framework (http://framework.zend.com/)
*
* @category Zend
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Uri
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

namespace Zend\Uri\Exception;

/**
* Exceptions for Zend_Uri
* Exception for Zend_Uri
*
* @category Zend
* @package Zend_Uri
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface ExceptionInterface
{}
{}
12 changes: 10 additions & 2 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Uri
*/

namespace Zend\Uri\Exception;

class InvalidArgumentException
extends \InvalidArgumentException
implements \Zend\Uri\Exception\ExceptionInterface
{}
implements ExceptionInterface
{}
27 changes: 6 additions & 21 deletions src/Exception/InvalidUriException.php
Original file line number Diff line number Diff line change
@@ -1,39 +1,24 @@
<?php

/**
* Zend Framework
*
* LICENSE
* Zend Framework (http://framework.zend.com/)
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Uri
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

namespace Zend\Uri\Exception;

/**
* Exceptions for Zend_Uri
*
* @uses \Zend\URI\Exception
* @category Zend
* @package Zend_Uri
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class InvalidUriException
extends \InvalidArgumentException
implements \Zend\Uri\Exception\ExceptionInterface
{

}
implements ExceptionInterface
{}
10 changes: 9 additions & 1 deletion src/Exception/InvalidUriPartException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Uri
*/

namespace Zend\Uri\Exception;

class InvalidUriPartException
extends \InvalidArgumentException
implements \Zend\Uri\Exception\ExceptionInterface
implements ExceptionInterface
{
/**
* Part-specific error codes
Expand Down
27 changes: 6 additions & 21 deletions src/Exception/InvalidUriTypeException.php
Original file line number Diff line number Diff line change
@@ -1,39 +1,24 @@
<?php

/**
* Zend Framework
*
* LICENSE
* Zend Framework (http://framework.zend.com/)
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Uri
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

namespace Zend\Uri\Exception;

/**
* Exceptions for Zend_Uri
*
* @uses \Zend\URI\Exception
* @category Zend
* @package Zend_Uri
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class InvalidUriTypeException
extends \InvalidArgumentException
implements \Zend\Uri\Exception\ExceptionInterface
{

}
implements ExceptionInterface
{}
26 changes: 9 additions & 17 deletions src/File.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Uri
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Uri
*/

namespace Zend\Uri;
Expand Down Expand Up @@ -56,7 +46,8 @@ public function isValid()
* User Info part is not used in file URIs
*
* @see Uri::setUserInfo()
* @throws Exception\InvalidUriPartException
* @param string $userInfo
* @return File
*/
public function setUserInfo($userInfo)
{
Expand All @@ -67,7 +58,8 @@ public function setUserInfo($userInfo)
* Fragment part is not used in file URIs
*
* @see Uri::setFragment()
* @throws Exception\InvalidUriPartException
* @param string $fragment
* @return File
*/
public function setFragment($fragment)
{
Expand Down Expand Up @@ -112,4 +104,4 @@ public static function fromWindowsPath($path)
$url->setPath($path);
return $url;
}
}
}
20 changes: 5 additions & 15 deletions src/Http.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Uri
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Uri
*/

namespace Zend\Uri;
Expand Down Expand Up @@ -187,4 +177,4 @@ public function getPort()
}
return $this->port;
}
}
}
22 changes: 6 additions & 16 deletions src/Mailto.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Uri
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Uri
*/

namespace Zend\Uri;
Expand All @@ -26,7 +16,7 @@
/**
* "Mailto" URI handler
*
* The 'mailto:...' scheme is loosly defined in RFC-1738
* The 'mailto:...' scheme is loosely defined in RFC-1738
*
* @category Zend
* @package Zend_Uri
Expand Down Expand Up @@ -122,4 +112,4 @@ public function getValidator()
}
return $this->emailValidator;
}
}
}
Loading

0 comments on commit 785b6c6

Please sign in to comment.