Skip to content

Commit 74afbe5

Browse files
author
Martin Brecht-Precht
committed
Updated vendor prefix and root namespace.
1 parent bf93a14 commit 74afbe5

34 files changed

+91
-89
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Martin Brecht-Precht, Markenwerk GmbH
3+
Copyright (c) 2016 Martin Brecht-Precht, Chroma Experience GmbH
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# PHP Common Exceptions
22

33
[![SensioLabs Insight](https://img.shields.io/sensiolabs/i/36a9a695-37c5-4836-bd15-33a0d03ee915.svg)](https://insight.sensiolabs.com/projects/36a9a695-37c5-4836-bd15-33a0d03ee915)
4-
[![Code Climate](https://codeclimate.com/github/markenwerk/php-common-exceptions/badges/gpa.svg)](https://codeclimate.com/github/markenwerk/php-common-exceptions)
5-
[![Latest Stable Version](https://poser.pugx.org/markenwerk/common-exceptions/v/stable)](https://packagist.org/packages/markenwerk/common-exceptions)
6-
[![Total Downloads](https://poser.pugx.org/markenwerk/common-exceptions/downloads)](https://packagist.org/packages/markenwerk/common-exceptions)
7-
[![License](https://poser.pugx.org/markenwerk/common-exceptions/license)](https://packagist.org/packages/markenwerk/common-exceptions)
4+
[![Code Climate](https://codeclimate.com/github/chroma-x/php-common-exceptions/badges/gpa.svg)](https://codeclimate.com/github/chroma-x/php-common-exceptions)
5+
[![Latest Stable Version](https://poser.pugx.org/chroma-x/common-exceptions/v/stable)](https://packagist.org/packages/chroma-x/common-exceptions)
6+
[![Total Downloads](https://poser.pugx.org/chroma-x/common-exceptions/downloads)](https://packagist.org/packages/chroma-x/common-exceptions)
7+
[![License](https://poser.pugx.org/chroma-x/common-exceptions/license)](https://packagist.org/packages/chroma-x/common-exceptions)
88

99
A PHP library providing common exception classes used by different projects.
1010

@@ -13,7 +13,7 @@ A PHP library providing common exception classes used by different projects.
1313
```{json}
1414
{
1515
"require": {
16-
"markenwerk/common-exceptions": "~3.0"
16+
"chroma-x/common-exceptions": "~3.0"
1717
}
1818
}
1919
```
@@ -35,17 +35,17 @@ require_once('path/to/vendor/autoload.php');
3535
```{php}
3636
try{
3737
// Perform something maybe throwing an exception
38-
} catch (Markenwerk\CommonException\NetworkException\ConnectionException $exception) {
38+
} catch (ChromaX\CommonException\NetworkException\ConnectionException $exception) {
3939
// API is not reachable
40-
} catch (Markenwerk\CommonException\NetworkException\CurlException $exception) {
40+
} catch (ChromaX\CommonException\NetworkException\CurlException $exception) {
4141
// Curl failed
42-
} catch (Markenwerk\CommonException\ApiException\InvalidResponseException $exception) {
42+
} catch (ChromaX\CommonException\ApiException\InvalidResponseException $exception) {
4343
// API returns an unexpected result
44-
} catch (Markenwerk\CommonException\ApiException\RequestQuotaException $exception) {
44+
} catch (ChromaX\CommonException\ApiException\RequestQuotaException $exception) {
4545
// API requests over the allowed limit
46-
} catch (Markenwerk\CommonException\ApiException\NoResultsException $exception) {
46+
} catch (ChromaX\CommonException\ApiException\NoResultsException $exception) {
4747
// API request had no result
48-
} catch (Markenwerk\CommonException\IoException\FileWriteException $exception) {
48+
} catch (ChromaX\CommonException\IoException\FileWriteException $exception) {
4949
// Log file was not writable
5050
}
5151
@@ -56,11 +56,11 @@ try{
5656
```{php}
5757
try{
5858
// Perform something maybe throwing an exception
59-
} catch (Markenwerk\CommonException\NetworkException\Base\NetworkException $exception) {
59+
} catch (ChromaX\CommonException\NetworkException\Base\NetworkException $exception) {
6060
// Any network exception was thrown
61-
} catch (Markenwerk\CommonException\ApiException\Base\ApiException $exception) {
61+
} catch (ChromaX\CommonException\ApiException\Base\ApiException $exception) {
6262
// Any API exception was thrown
63-
} catch (Markenwerk\CommonException\IoException\Base\IoException $exception) {
63+
} catch (ChromaX\CommonException\IoException\Base\IoException $exception) {
6464
// Any IO exception was thrown
6565
}
6666
@@ -71,7 +71,7 @@ try{
7171
```{php}
7272
try{
7373
// Perform something maybe throwing an exception
74-
} catch (Markenwerk\CommonException\Base\BaseException $exception) {
74+
} catch (ChromaX\CommonException\Base\BaseException $exception) {
7575
// Any exception was thrown
7676
}
7777
@@ -80,7 +80,7 @@ try{
8080
## Contribution
8181

8282
Contributing to our projects is always very appreciated.
83-
**But: please follow the contribution guidelines written down in the [CONTRIBUTING.md](https://github.com/markenwerk/php-common-exceptions/blob/master/CONTRIBUTING.md) document.**
83+
**But: please follow the contribution guidelines written down in the [CONTRIBUTING.md](https://github.com/chroma-x/php-common-exceptions/blob/master/CONTRIBUTING.md) document.**
8484

8585
## License
8686

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"name": "markenwerk/common-exceptions",
2+
"name": "chroma-x/common-exceptions",
33
"type": "library",
44
"description": "A PHP library providing common exception classes used by different projects.",
55
"keywords": [
66
"Exceptions"
77
],
8-
"homepage": "http://markenwerk.net/",
8+
"homepage": "http://chroma-x.de/",
99
"license": "MIT",
1010
"authors": [
1111
{
1212
"name": "Martin Brecht-Precht",
13-
"email": "mb@markenwerk.net",
14-
"homepage": "http://markenwerk.net"
13+
"email": "mb@chroma-x.de",
14+
"homepage": "http://chroma-x.de"
1515
}
1616
],
1717
"autoload": {
1818
"psr-4": {
19-
"Markenwerk\\CommonException\\": "src/"
19+
"ChromaX\\CommonException\\": "src/"
2020
}
2121
},
2222
"require": {

src/ApiException/AuthenticationException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\ApiException;
3+
namespace ChromaX\CommonException\ApiException;
44

55
/**
66
* Class AuthenticationException
77
*
8-
* @package Markenwerk\CommonException\ApiException
8+
* @package ChromaX\CommonException\ApiException
99
*/
1010
class AuthenticationException extends Base\ApiException
1111
{

src/ApiException/Base/ApiException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\ApiException\Base;
3+
namespace ChromaX\CommonException\ApiException\Base;
44

5-
use Markenwerk\CommonException\Base;
5+
use ChromaX\CommonException\Base;
66

77
/**
88
* Class ApiException
99
*
10-
* @package Markenwerk\CommonException\ApiException
10+
* @package ChromaX\CommonException\ApiException
1111
*/
1212
class ApiException extends Base\BaseException
1313
{

src/ApiException/InvalidResponseException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\ApiException;
3+
namespace ChromaX\CommonException\ApiException;
44

55
/**
66
* Class InvalidResponseException
77
*
8-
* @package Markenwerk\CommonException\ApiException
8+
* @package ChromaX\CommonException\ApiException
99
*/
1010
class InvalidResponseException extends Base\ApiException
1111
{

src/ApiException/NoResultException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\ApiException;
3+
namespace ChromaX\CommonException\ApiException;
44

55
/**
66
* Class NoResultException
77
*
8-
* @package Markenwerk\CommonException\ApiException
8+
* @package ChromaX\CommonException\ApiException
99
*/
1010
class NoResultException extends Base\ApiException
1111
{

src/ApiException/RequestQuotaException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\ApiException;
3+
namespace ChromaX\CommonException\ApiException;
44

55
/**
66
* Class RequestQuotaException
77
*
8-
* @package Markenwerk\CommonException\ApiException
8+
* @package ChromaX\CommonException\ApiException
99
*/
1010
class RequestQuotaException extends Base\ApiException
1111
{

src/ApiException/UnexpectedResponseException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\ApiException;
3+
namespace ChromaX\CommonException\ApiException;
44

55
/**
66
* Class UnexpectedResponseException
77
*
8-
* @package Markenwerk\CommonException\ApiException
8+
* @package ChromaX\CommonException\ApiException
99
*/
1010
class UnexpectedResponseException extends Base\ApiException
1111
{

src/Base/BaseException.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\Base;
3+
namespace ChromaX\CommonException\Base;
4+
5+
use Exception;
46

57
/**
68
* Class BaseException
79
*
8-
* @package Markenwerk\CommonException
10+
* @package ChromaX\CommonException
911
*/
10-
abstract class BaseException extends \Exception
12+
abstract class BaseException extends Exception
1113
{
1214

1315
}

src/IoException/Base/IoException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException\Base;
3+
namespace ChromaX\CommonException\IoException\Base;
44

5-
use Markenwerk\CommonException\Base;
5+
use ChromaX\CommonException\Base;
66

77
/**
88
* Class BaseException
99
*
10-
* @package Markenwerk\CommonException\IoException\Base
10+
* @package ChromaX\CommonException\IoException\Base
1111
*/
1212
class IoException extends Base\BaseException
1313
{

src/IoException/FileCopyException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FileCopyException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FileCopyException extends Base\IoException
1111
{

src/IoException/FileDeletableException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FileDeletableException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FileDeletableException extends Base\IoException
1111
{

src/IoException/FileDeleteException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FileDeleteException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FileDeleteException extends Base\IoException
1111
{

src/IoException/FileMoveException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FileMoveException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FileMoveException extends Base\IoException
1111
{

src/IoException/FileNotFoundException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FileNotFoundException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FileNotFoundException extends Base\IoException
1111
{

src/IoException/FileReadException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FileReadException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FileReadException extends Base\IoException
1111
{

src/IoException/FileReadableException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FileReadableException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FileReadableException extends Base\IoException
1111
{

src/IoException/FileWritableException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FileWritableException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FileWritableException extends Base\IoException
1111
{

src/IoException/FileWriteException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FileWriteException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FileWriteException extends Base\IoException
1111
{

src/IoException/FolderNotFoundException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FolderNotFoundException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FolderNotFoundException extends Base\IoException
1111
{

src/IoException/FolderReadableException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Markenwerk\CommonException\IoException;
3+
namespace ChromaX\CommonException\IoException;
44

55
/**
66
* Class FolderReadableException
77
*
8-
* @package Markenwerk\CommonException\IoException
8+
* @package ChromaX\CommonException\IoException
99
*/
1010
class FolderReadableException extends Base\IoException
1111
{

0 commit comments

Comments
 (0)