Initial farm.update service with rebuild() method.
This commit is contained in:
parent
fbb589655d
commit
2dd6a268f8
|
@ -0,0 +1,3 @@
|
|||
services:
|
||||
farm.update:
|
||||
class: Drupal\farm_update\FarmUpdate
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\farm_update;
|
||||
|
||||
/**
|
||||
* Farm update service.
|
||||
*/
|
||||
class FarmUpdate implements FarmUpdateInterface {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rebuild(): void {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\farm_update;
|
||||
|
||||
/**
|
||||
* Farm update service interface.
|
||||
*/
|
||||
interface FarmUpdateInterface {
|
||||
|
||||
/**
|
||||
* Rebuild farmOS configuration.
|
||||
*/
|
||||
public function rebuild(): void;
|
||||
|
||||
}
|
Loading…
Reference in New Issue