Skip to content
GitLab
Explore
Sign in
project
provision
Compare revisions
d5a41dd4e24ec7830456984c79f639c32808634d to 4.x-services
Hide whitespace changes
Inline
Side-by-side
src/Service/HttpService.php
View file @
c8625f17
...
...
@@ -24,14 +24,32 @@ class HttpService extends Service {
protected
$ssl_enabled
=
FALSE
;
static
function
option_documentation
()
{
return
array
(
/**
* Implements Service::server_options()
*
* @return array
*/
static
function
server_options
()
{
return
[
'http_port'
=>
'The port which the web service is running on.'
,
'web_group'
=>
'server with http: OS group for permissions; working default will be attempted'
,
'web_disable_url'
=>
'server with http: URL disabled sites are redirected to; default {master_url}/hosting/disabled'
,
'web_maintenance_url'
=>
'server with http: URL maintenance sites are redirected to; default {master_url}/hosting/maintenance'
,
);
'restart_command'
=>
'The command to reload the web server configuration;'
];
}
/**
* List context types that are allowed to subscribe to this service.
* @return array
*/
static
function
allowedContexts
()
{
return
[
'platform'
];
}
/**
* Support the ability to cloak the database credentials using environment variables.
...
...
src/ServiceSubscription.php
0 → 100644
View file @
c8625f17
<?php
/**
* @file
* A context's subscription to a service. Handles properties specific to a
* context for each service.
*
* @see Provision_Service
*/
namespace
Aegir\Provision
;
class
ServiceSubscription
{
public
$context
;
public
$service
;
public
$server
;
public
$type
;
function
__construct
(
$context
,
$server
,
$service_name
)
{
$this
->
context
=
$context
;
$this
->
server
=
$server
;
$this
->
service
=
$server
->
getService
(
$service_name
);
$this
->
type
=
$server
->
getService
(
$service_name
)
->
type
;
}
}
Prev
1
2
Next