Skip to content

Commit dc74309

Browse files
author
janatzend
committed
removed vhost functionality (not needed anymore for Zend Server)
1 parent dcbc2eb commit dc74309

File tree

12 files changed

+3
-541
lines changed

12 files changed

+3
-541
lines changed

ZendDevOps/DepH/ServiceManager/ServiceManager.php

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,8 @@ public function __construct($currentActionScript = null) {
8080
$debugger = new \ZendDevOps\DepH\Debugger\ZendDebugger();
8181
$debugger->setDeployment($sm->get('Deployment'));
8282
return $debugger;
83-
});
84-
85-
$this->setFactory('Vhost', function () use ($sm) {
86-
$vhost = new \ZendDevOps\DepH\Vhost\Vhost();
87-
$vhost->setEventManager($sm->get('EventManager'));
88-
$vhost->setShell($sm->get('Shell'));
89-
$vhost->setPath($sm->get('Path'));
90-
$vhost->setTemplate($sm->get('Template'));
91-
$vhost->setDeployment($sm->get('Deployment'));
92-
93-
$vhost->getEventManager()->attach('write', array($vhost, 'allowedToWrite'));
94-
$vhost->getEventManager()->attach('finalize', array($vhost, 'preparingFinalize'));
95-
96-
return $vhost;
97-
});
98-
83+
});
84+
9985
$this->setInvokableClass('MysqliFactory', '\ZendDevOps\DepH\Db\MysqliFactory');
10086
$this->setFactory('DB', $sm->get('MysqliFactory'));
10187

@@ -112,12 +98,6 @@ public function __construct($currentActionScript = null) {
11298
$logger->setCurrentActionScriptName($action);
11399

114100
$params->setDeployment($deployment);
115-
116-
$vhost = $sm->get('Vhost');
117-
if (is_file($vhost->getCustomVhostAwareFile()) &&
118-
$deployment->isPostActivateAction()) {
119-
$vhost->finalize();
120-
}
121101
}
122102

123103
/**

ZendDevOps/DepH/Vhost/Exception/RuntimeException.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

ZendDevOps/DepH/Vhost/Vhost.php

Lines changed: 0 additions & 183 deletions
This file was deleted.

tests/ZendDevOps/DepH/Path/PathTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function setUp()
5353
if (is_dir($this->tmpTestDir)) {
5454
deleteDir($this->tmpTestDir);
5555
}
56-
mkdir($this->tmpTestDir);
56+
mkdir($this->tmpTestDir, 0777, true);
5757
}
5858

5959
/**

0 commit comments

Comments
 (0)