Skip to content

Commit 47cd5a1

Browse files
author
Marco Bunge
committed
Fix typo
1 parent 0862c03 commit 47cd5a1

File tree

6 files changed

+45
-47
lines changed

6 files changed

+45
-47
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Hawkbit Persistence Changelog
1+
# Hawkbit Presentation Changelog
22

33
## 1.0.0
44

55
### Added
66

7-
- Add persistence service, service provider and documentation
7+
- Add Presentation service, service provider and documentation
88

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Contributions are **welcome** and will be fully **credited**.
44

5-
We accept contributions via Pull Requests on [Github](https://github.com/HawkBitPhP/persistence).
5+
We accept contributions via Pull Requests on [Github](https://github.com/HawkBitPhP/Presentation).
66

77
## Pull Requests
88

README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
# Hawkbit Persistence
1+
# Hawkbit Presentation
22

33
[![Latest Version on Packagist][ico-version]][link-packagist]
44
[![Software License][ico-license]](LICENSE.md)
55
[![Build Status][ico-travis]][link-travis]
66
[![Total Downloads][ico-downloads]][link-downloads]
77
[![Coverage Status][ico-coveralls]][link-coveralls]
88

9-
Persistence layer for Hawkbit PSR-7 Micro PHP framework.
10-
Hawkbit Persitence uses factories of `dasprid/container-interop-doctrine` and wraps them with in a PersistenceService
9+
Presentation layer for Hawkbit PSR-7 Micro PHP framework.
10+
Hawkbit Persitence uses factories of `dasprid/container-interop-doctrine` and wraps them with in a PresentationService
1111

1212
## Install
1313

1414
### Using Composer
1515

16-
Hawkbit Persistence is available on [Packagist][link-packagist] and can be installed using [Composer](https://getcomposer.org/). This can be done by running the following command or by updating your `composer.json` file.
16+
Hawkbit Presentation is available on [Packagist][link-packagist] and can be installed using [Composer](https://getcomposer.org/). This can be done by running the following command or by updating your `composer.json` file.
1717

1818
```bash
19-
composer require hawkbit/persistence
19+
composer require hawkbit/Presentation
2020
```
2121

2222
composer.json
2323

2424
```javascript
2525
{
2626
"require": {
27-
"hawkbit/persistence": "~1.0"
27+
"hawkbit/Presentation": "~1.0"
2828
}
2929
}
3030
```
@@ -39,7 +39,7 @@ require __DIR__ . '/vendor/autoload.php';
3939

4040
### Downloading .zip file
4141

42-
This project is also available for download as a `.zip` file on GitHub. Visit the [releases page](https://github.com/hawkbit/persistence/releases), select the version you want, and click the "Source code (zip)" download button.
42+
This project is also available for download as a `.zip` file on GitHub. Visit the [releases page](https://github.com/hawkbit/Presentation/releases), select the version you want, and click the "Source code (zip)" download button.
4343

4444
### Requirements
4545

@@ -58,18 +58,18 @@ Setup with an existing application configuration (we refer to [tests/assets/conf
5858
<?php
5959

6060
use \Hawkbit\Application;
61-
use \Hawkbit\Persistence\PersistenceService;
62-
use \Hawkbit\Persistence\PersistenceServiceProvider;
61+
use \Hawkbit\Presentation\PresentationService;
62+
use \Hawkbit\Presentation\PresentationServiceProvider;
6363

6464
$app = new Application(require_once __DIR__ . '/config.php');
6565

6666
$entityFactoryClass = \ContainerInteropDoctrine\EntityManagerFactory::class;
6767

68-
$persistenceService = new PersistenceService([
69-
PersistenceService::resolveFactoryAlias($entityFactoryClass) => [$entityFactoryClass]
68+
$PresentationService = new PresentationService([
69+
PresentationService::resolveFactoryAlias($entityFactoryClass) => [$entityFactoryClass]
7070
], $app);
7171

72-
$app->register(new PersistenceServiceProvider($persistenceService));
72+
$app->register(new PresentationServiceProvider($PresentationService));
7373
```
7474

7575
## Examples
@@ -79,46 +79,46 @@ $app->register(new PersistenceServiceProvider($persistenceService));
7979
A full configuration is available on [DASPRiD/container-interop-doctrine/example/full-config.php](https://github.com/DASPRiD/container-interop-doctrine/blob/master/example/full-config.php).
8080
Refer to [container-interop-doctrine Documentation](https://github.com/DASPRiD/container-interop-doctrine) for further instructions on factories.
8181

82-
### Persistence from Hawbit Application
82+
### Presentation from Hawbit Application
8383

8484
```php
8585
<?php
8686

87-
/** @var \Hawkbit\Persistence\PersistenceServiceInterface $persistence */
88-
$persistence = $app[\Hawkbit\Persistence\PersistenceServiceInterface::class];
87+
/** @var \Hawkbit\Presentation\PresentationServiceInterface $Presentation */
88+
$Presentation = $app[\Hawkbit\Presentation\PresentationServiceInterface::class];
8989

90-
$em = $persistence->getEntityManager();
90+
$em = $Presentation->getEntityManager();
9191

9292
// or with from specific connection
93-
$em = $persistence->getEntityManager('connectionname');
93+
$em = $Presentation->getEntityManager('connectionname');
9494

9595
```
9696

97-
### Persistence in a Hawkbit controller
97+
### Presentation in a Hawkbit controller
9898

99-
Access persistence service in controller. Hawbit is inject classes to controllers by default.
99+
Access Presentation service in controller. Hawbit is inject classes to controllers by default.
100100

101101
```php
102102
<?php
103103

104-
use \Hawkbit\Persistence\PersistenceServiceInterface;
104+
use \Hawkbit\Presentation\PresentationServiceInterface;
105105

106106
class MyController{
107107

108108
/**
109-
* @var \Hawkbit\Persistence\PersistenceServiceInterface
109+
* @var \Hawkbit\Presentation\PresentationServiceInterface
110110
*/
111-
private $persistence = null;
111+
private $Presentation = null;
112112

113-
public function __construct(PersistenceServiceInterface $persistence){
114-
$this->persistence = $persistence;
113+
public function __construct(PresentationServiceInterface $Presentation){
114+
$this->Presentation = $Presentation;
115115
}
116116

117117
public function index(){
118-
$em = $this->persistence->getEntityManager();
118+
$em = $this->Presentation->getEntityManager();
119119

120120
// or with from specific connection
121-
$em = $this->persistence->getEntityManager('connectionname');
121+
$em = $this->Presentation->getEntityManager('connectionname');
122122
}
123123
}
124124
```
@@ -144,17 +144,17 @@ If you discover any security related issues, please email <[email protected]> instead
144144
## Credits
145145

146146
- [Marco Bunge](https://github.com/mbunge)
147-
- [All contributors](https://github.com/hawkbit/persistence/graphs/contributors)
147+
- [All contributors](https://github.com/hawkbit/Presentation/graphs/contributors)
148148

149149
## License
150150

151151
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
152152

153-
[ico-version]: https://img.shields.io/packagist/v/hawkbit/persistence.svg?style=flat-square
153+
[ico-version]: https://img.shields.io/packagist/v/hawkbit/Presentation.svg?style=flat-square
154154
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
155-
[ico-travis]: https://img.shields.io/travis/HawkBitPhp/hawkbit-persistence/master.svg?style=flat-square
156-
[ico-downloads]: https://img.shields.io/packagist/dt/hawkbit/persistence.svg?style=flat-square
157-
[ico-coveralls]: https://img.shields.io/coveralls/HawkBitPhp/hawkbit-persistence/master.svg?style=flat-square
155+
[ico-travis]: https://img.shields.io/travis/HawkBitPhp/hawkbit-Presentation/master.svg?style=flat-square
156+
[ico-downloads]: https://img.shields.io/packagist/dt/hawkbit/Presentation.svg?style=flat-square
157+
[ico-coveralls]: https://img.shields.io/coveralls/HawkBitPhp/hawkbit-Presentation/master.svg?style=flat-square
158158

159159
[link-packagist]: https://packagist.org/packages/hawkbit/hawkbit
160160
[link-travis]: https://travis-ci.org/HawkBitPhp/hawkbit

composer.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "hawkbit/persistence",
2+
"name": "hawkbit/Presentation",
33
"type": "hawkbit-component",
4-
"description": "Persistence layer for Hawkbit PSR-7 Micro PHP framework",
4+
"description": "Presentation layer for Hawkbit PSR-7 Micro PHP framework",
55
"keywords": [
66
"doctrine",
77
"orm",
8-
"persistence",
8+
"Presentation",
99
"hawkbit"
1010
],
1111
"homepage": "https://github.com/HawkBitPhP",
@@ -18,21 +18,20 @@
1818
],
1919
"require": {
2020
"php": ">=5.5.0",
21-
"league/plates": "~3.0",
22-
"robclancy/presenter": "~1.3.1"
21+
"league/plates": "~3.0"
2322
},
2423
"require-dev": {
2524
"phpunit/phpunit": "~4.8",
2625
"hawkbit/hawkbit": "~2.0"
2726
},
2827
"autoload": {
2928
"psr-4": {
30-
"Hawkbit\\Persistence\\": "src/"
29+
"Hawkbit\\Presentation\\": "src/"
3130
}
3231
},
3332
"autoload-dev": {
3433
"psr-4": {
35-
"Hawkbit\\Persistence\\Tests\\": "tests/"
34+
"Hawkbit\\Presentation\\Tests\\": "tests/"
3635
}
3736
},
3837
"scripts": {

src/PresentationServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 13:40
77
*/
88

9-
namespace Hawkbit\Persistence;
9+
namespace Hawkbit\Presentation;
1010

1111

1212
use League\Container\ServiceProvider\AbstractServiceProvider;

tests/IntegrationTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
* Time: 15:07
77
*/
88

9-
namespace Hawkbit\Persistence\Tests;
9+
namespace Hawkbit\Presentation\Tests;
1010

1111

1212
use ContainerInteropDoctrine\EntityManagerFactory;
1313
use Doctrine\ORM\EntityManagerInterface;
1414
use Hawkbit\Application;
15-
use Hawkbit\Persistence\PersistenceService;
16-
use Hawkbit\Persistence\PersistenceServiceInterface;
17-
use Hawkbit\Persistence\PresentationServiceProvider;
15+
use Hawkbit\Presentation\PresentationService;
16+
use Hawkbit\Presentation\PresentationServiceInterface;
17+
use Hawkbit\Presentation\PresentationServiceProvider;
1818
use League\Plates\Engine;
1919
use org\bovigo\vfs\vfsStream;
2020

@@ -29,7 +29,6 @@ public function testIntegration()
2929
$engine = $app[Engine::class];
3030
$result = $engine->render('index', ['world' => 'World']);
3131

32-
3332
$this->assertInstanceOf(Engine::class, $engine);
3433
$this->assertEquals('Hello World', $result);
3534
}

0 commit comments

Comments
 (0)