Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

Commit

Permalink
Unified namespace conventions used across packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrankruijter committed Nov 10, 2019
1 parent 6caa9ff commit 7bd777c
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 19 deletions.
23 changes: 22 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 5.0.0 - 2019-11-10
### Added
- Nothing

### Changed
- Unified namespace conventions used across packages

### Deprecated
- Nothing

### Removed
- Nothing

### Fixed
- Nothing

### Security
- Nothing

## 4.0.0 - 2019-10-10
### Added
- Command interface and implementation.
Expand Down Expand Up @@ -90,6 +109,8 @@ objects in applications.
### Security
- Nothing

[Unreleased]: https://github.com/ulrack/transaction/compare/3.0.0...HEAD
[Unreleased]: https://github.com/ulrack/transaction/compare/5.0.0...HEAD
[5.0.0]: https://github.com/ulrack/transaction/compare/4.0.0...5.0.0
[4.0.0]: https://github.com/ulrack/transaction/compare/3.0.0...4.0.0
[3.0.0]: https://github.com/ulrack/transaction/compare/2.0.0...3.0.0
[2.0.0]: https://github.com/ulrack/transaction/compare/1.0.0...2.0.0
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ composer require ulrack/transaction

## Usage

### [Request](src/Transaction/Request.php)
### [Request](src/Component/Request.php)

A simple data access object for defining incoming web requests.
This instance requires one of the [MethodEnum](src/Common/MethodEnum.php)
options to be passed.

### [Response](src/Transaction/Response.php)
### [Response](src/Component/Response.php)

A simple data access object for defining outgoing web responses.

### [Command](src/Transaction/Command.php)
### [Command](src/Component/Command.php)

A simple data access object for defining incoming CLI instructions.

### Factories

#### [CommandFactory](src/Factory/CommandFactory.php)

A static factory which creates [Commands](src/Transaction/Command.php) based on
A static factory which creates [Commands](src/Component/Command.php) based on
provided arguments.

The following example will generate a command object.
Expand Down
2 changes: 1 addition & 1 deletion src/Transaction/Command.php → src/Component/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See LICENSE for license details.
*/

namespace Ulrack\Transaction\Transaction;
namespace Ulrack\Transaction\Component;

use Ulrack\Transaction\Common\CommandInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Transaction/Request.php → src/Component/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See LICENSE for license details.
*/

namespace Ulrack\Transaction\Transaction;
namespace Ulrack\Transaction\Component;

use Ulrack\Transaction\Common\RequestInterface;
use Ulrack\Transaction\Common\MethodEnum;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See LICENSE for license details.
*/

namespace Ulrack\Transaction\Transaction;
namespace Ulrack\Transaction\Component;

use Ulrack\Transaction\Common\ResponseInterface;
use Ulrack\Transaction\Exception\HeaderNotFoundException;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/CommandFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Ulrack\Transaction\Factory;

use Ulrack\Transaction\Transaction\Command;
use Ulrack\Transaction\Component\Command;
use Ulrack\Transaction\Common\CommandInterface;

class CommandFactory
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/RequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Ulrack\Transaction\Factory;

use Ulrack\Transaction\Common\MethodEnum;
use Ulrack\Transaction\Transaction\Request;
use Ulrack\Transaction\Component\Request;
use Ulrack\Transaction\Common\RequestInterface;
use Ulrack\Transaction\Exception\InvalidRequestException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
* See LICENSE for license details.
*/

namespace Ulrack\Transaction\Tests\Transaction;
namespace Ulrack\Transaction\Tests\Component;

use PHPUnit\Framework\TestCase;
use Ulrack\Transaction\Transaction\Command;
use Ulrack\Transaction\Component\Command;

/**
* @coversDefaultClass \Ulrack\Transaction\Transaction\Command
* @coversDefaultClass \Ulrack\Transaction\Component\Command
*/
class CommandTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* See LICENSE for license details.
*/

namespace Ulrack\Transaction\Tests\Transaction;
namespace Ulrack\Transaction\Tests\Component;

use PHPUnit\Framework\TestCase;
use Ulrack\Transaction\Transaction\Request;
use Ulrack\Transaction\Component\Request;
use Ulrack\Transaction\Common\MethodEnum;
use Ulrack\Transaction\Exception\HeaderNotFoundException;

/**
* @coversDefaultClass \Ulrack\Transaction\Transaction\Request
* @coversDefaultClass \Ulrack\Transaction\Component\Request
* @covers \Ulrack\Transaction\Exception\HeaderNotFoundException
*/
class RequestTest extends TestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* See LICENSE for license details.
*/

namespace Ulrack\Transaction\Tests\Transaction;
namespace Ulrack\Transaction\Tests\Component;

use PHPUnit\Framework\TestCase;
use Ulrack\Transaction\Transaction\Response;
use Ulrack\Transaction\Component\Response;
use Ulrack\Search\Common\SearchCriteriaInterface;
use Ulrack\Transaction\Exception\HeaderNotFoundException;

/**
* @coversDefaultClass \Ulrack\Transaction\Transaction\Response
* @coversDefaultClass \Ulrack\Transaction\Component\Response
* @covers \Ulrack\Transaction\Exception\HeaderNotFoundException
*/
class ResponseTest extends TestCase
Expand Down

0 comments on commit 7bd777c

Please sign in to comment.