Skip to content

Commit ad95faa

Browse files
committed
Add services templates
1 parent e56f1f2 commit ad95faa

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

src/Ubiquity/scaffolding/starter/ServiceStarter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(?string $servicesName = 'services') {
3434
}
3535

3636
public function getTemplateDir() {
37-
return \dirname(__DIR__) . "/../scaffolding/templates/services/";
37+
return \dirname(__DIR__) . "/templates/services/";
3838
}
3939

4040
public function addService($serviceName) {

src/Ubiquity/scaffolding/templates/createCommand.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class %classname% extends AbstractCustomCommand {
3333

3434
public function run($config, $options, $what, ...$otherArgs) {
3535
//TODO implement command behavior
36-
ConsoleFormatter::showInfo('Run %name% command');
36+
echo ConsoleFormatter::showInfo('Run %name% command');
3737
}
3838
}
3939

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
\Ubiquity\security\csrf\CsrfManager::start();
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
\Ubiquity\security\data\EncryptionManager::start($config);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Notice that this directory must be writable.
2+
$writable = \ROOT . \DS . 'cache' . \DS . 'shieldon';
3+
4+
// Initialize Firewall instance.
5+
$firewall = new \Shieldon\Firewall($writable);
6+
$firewall->run();

0 commit comments

Comments
 (0)