Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 95bbb17

Browse files
mabarMilan Felix Šulc
authored andcommitted
Fix old namespace
1 parent 5aa773a commit 95bbb17

File tree

5 files changed

+21
-16
lines changed

5 files changed

+21
-16
lines changed

.docs/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,21 @@ deployer:
102102
103103
You can register service which implement `AfterListener` or `BeforeListener`.
104104

105-
Example you can [find here](https://github.com/minetro/deployer-extension/tree/master/examples).
105+
Example you can [find here](https://github.com/contributte/deployer-extension/tree/master/examples).
106106

107107
Or in plugins section [here](#plugins).
108108

109109
## Deploy
110110

111-
See example [scripts here](https://github.com/minetro/deployer-extension/tree/master/examples).
111+
See example [scripts here](https://github.com/contributte/deployer-extension/tree/master/examples).
112112

113113
### Automatic
114114

115115
Config is automatic passed via extension.
116116

117117
```php
118118
# Create Deploy Manager
119-
$dm = $container->getByType('Minetro\Deployer\Manager');
119+
$dm = $container->getByType('Contributte\Deployer\Manager');
120120
$dm->deploy();
121121
```
122122

@@ -137,7 +137,7 @@ $config->addSection($section);
137137

138138
```php
139139
# Create Deploy Manager
140-
$dm = $container->getByType('Minetro\Deployer\Manager');
140+
$dm = $container->getByType('Contributte\Deployer\Manager');
141141
$dm->manualDeploy($config);
142142
```
143143

@@ -154,7 +154,7 @@ public function actionDeploy()
154154
}
155155
```
156156

157-
### Prepared deploy script ([deploy.php](https://github.com/minetro/deployer-extension/tree/master/examples/deploy.php) & [deploy](https://github.com/minetro/deployer-extension/tree/master/examples/deploy))
157+
### Prepared deploy script ([deploy.php](https://github.com/contributte/deployer-extension/tree/master/examples/deploy.php) & [deploy](https://github.com/contributte/deployer-extension/tree/master/examples/deploy))
158158

159159
Place it by yourself (for example root/deploy.php). Be careful about `local` and `tempDir`, there depend on location.
160160

@@ -177,7 +177,7 @@ $configurator->addConfig(__DIR__ . '/config/config.neon');
177177
$container = $configurator->createContainer();
178178
179179
# Create Deploy Manager
180-
$dm = $container->getByType('Minetro\Deployer\Manager');
180+
$dm = $container->getByType('Contributte\Deployer\Manager');
181181
$dm->deploy();
182182
```
183183

examples/deploy.php

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

3+
use Contributte\Deployer\Manager;
4+
35
require __DIR__ . '/vendor/autoload.php';
46

57
# Configurator
@@ -18,5 +20,5 @@
1820
$container = $configurator->createContainer();
1921

2022
# Create Deploy Manager
21-
$dm = $container->getByType('Minetro\Deployer\Manager');
23+
$dm = $container->getByType(Manager::class);
2224
$dm->deploy();

examples/listeners/TestAfterListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
use Deployment\Deployer;
44
use Deployment\Logger;
55
use Deployment\Server;
6-
use Minetro\Deployer\Config\Config;
7-
use Minetro\Deployer\Config\Section;
8-
use Minetro\Deployer\Listeners\AfterListener;
6+
use Contributte\Deployer\Config\Config;
7+
use Contributte\Deployer\Config\Section;
8+
use Contributte\Deployer\Listeners\AfterListener;
99

1010
class TestAfterListener implements AfterListener
1111
{

examples/listeners/TestBeforeListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
use Deployment\Deployer;
44
use Deployment\Logger;
55
use Deployment\Server;
6-
use Minetro\Deployer\Config\Config;
7-
use Minetro\Deployer\Config\Section;
8-
use Minetro\Deployer\Listeners\BeforeListener;
6+
use Contributte\Deployer\Config\Config;
7+
use Contributte\Deployer\Config\Section;
8+
use Contributte\Deployer\Listeners\BeforeListener;
99

1010
class TestBeforeListener implements BeforeListener
1111
{

src/DI/DeployerExtension.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
namespace Contributte\Deployer\DI;
44

55
use Contributte\Deployer\Config\Config;
6+
use Contributte\Deployer\Config\ConfigFactory;
7+
use Contributte\Deployer\Manager;
8+
use Contributte\Deployer\Runner;
69
use Nette\DI\CompilerExtension;
710
use Nette\DI\Statement;
811

@@ -60,9 +63,9 @@ public function loadConfiguration(): void
6063

6164
// Add deploy manager
6265
$builder->addDefinition($this->prefix('manager'))
63-
->setFactory('Minetro\Deployer\Manager', [
64-
new Statement('Minetro\Deployer\Runner'),
65-
new Statement('Minetro\Deployer\Config\ConfigFactory', [$config]),
66+
->setFactory(Manager::class, [
67+
new Statement(Runner::class),
68+
new Statement(ConfigFactory::class, [$config]),
6669
]);
6770
}
6871

0 commit comments

Comments
 (0)