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

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2 into cach…
Browse files Browse the repository at this point in the history
…e_plugin_priority

Conflicts:
	library/Zend/Cache/Storage/Adapter/AbstractAdapter.php
	library/Zend/Cache/Storage/Plugin/ClearByFactor.php
	library/Zend/Cache/Storage/Plugin/ExceptionHandler.php
	library/Zend/Cache/Storage/Plugin/IgnoreUserAbort.php
	library/Zend/Cache/Storage/Plugin/OptimizeByFactor.php
	library/Zend/Cache/Storage/Plugin/Serializer.php
  • Loading branch information
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 171 deletions.
33 changes: 0 additions & 33 deletions src/Exception.php

This file was deleted.

22 changes: 22 additions & 0 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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;

/**
* 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
{}
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
{

}
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
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
{

}
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;
}
}
}
26 changes: 8 additions & 18 deletions src/Mailto.php
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
<?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;

use Zend\Validator\Validator,
use Zend\Validator\ValidatorInterface,
Zend\Validator\EmailAddress as EmailValidator;

/**
* "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 All @@ -39,7 +29,7 @@ class Mailto extends Uri

/**
* Validator for use when validating email address
* @var Validator
* @var ValidatorInterface
*/
protected $emailValidator;

Expand Down Expand Up @@ -101,7 +91,7 @@ public function getEmail()
* @param Validator $validator
* @return Mailto
*/
public function setValidator(Validator $validator)
public function setValidator(ValidatorInterface $validator)
{
$this->emailValidator = $validator;
return $this;
Expand Down
Loading

0 comments on commit b50b4db

Please sign in to comment.