Attention ! Gitlab fournissant maintenant nativement des certificats Let’s Encrypt aux domaines personnalisés des Gitlab Pages, nous avons coupé notre service qui le faisait automatiquement pour vous.

Il est impératif, pour que votre domaine personnalisé continue à avoir un certificat Let’s Encrypt à jour, d’activer la fonctionnalité native dans les paramètres de votre projet. Cette activation remplacera votre certificat actuel par un nouveau certificat Let’s Encrypt géré par Gitlab.

Voir les détails sur https://docs.framasoft.org/fr/gitlab/gitlab-pages-le.html

Commit 00b5615d authored by Joan Botella Vinaches's avatar Joan Botella Vinaches

Adds the ResponseWriter service and the entries responders

parent b6310d52
<?php
namespace slapdash\coreBundle\entry\notFound;
use slapdash\coreBundle\service\translator\Translator;
use slapdash\coreBundle\framework\controller\ControllerAbs as ParentClass;
use slapdash\coreBundle\entry\notFound\Responder;
class
Controller
......@@ -12,10 +12,7 @@ class
public function action():void
{
$translator = Translator::get(
__NAMESPACE__
);
echo $translator::title();
Responder::respond();
}
}
\ No newline at end of file
<?php
namespace slapdash\coreBundle\entry\notFound;
use slapdash\coreBundle\service\translator\Translator;
use slapdash\coreBundle\service\responseWriter\ResponseWriter;
class
Responder
{
public static function respond():void
{
ResponseWriter::writeContent(
static::buildContent()
);
}
protected static function buildContent():string
{
$translator = Translator::get(
__NAMESPACE__
);
return $translator::title();
}
}
\ No newline at end of file
......@@ -9,6 +9,7 @@ use slapdash\coreBundle\service\requestSessionWrapper\RequestSessionWrapperConfi
use slapdash\coreBundle\service\router\RouterConfigTrait;
use slapdash\coreBundle\service\templater\TemplaterConfigTrait;
use slapdash\coreBundle\service\translator\TranslatorConfigTrait;
use slapdash\coreBundle\service\responseWriter\ResponseWriterConfigTrait;
abstract
class
......@@ -22,6 +23,7 @@ class
RequestSessionWrapperConfigTrait,
RouterConfigTrait,
TemplaterConfigTrait,
TranslatorConfigTrait
TranslatorConfigTrait,
ResponseWriterConfigTrait
;
}
\ No newline at end of file
<?php
namespace slapdash\coreBundle\service\responseWriter;
class
ResponseWriter
{
public static function writeContent(string $content):void
{
echo $content;
}
}
\ No newline at end of file
<?php
namespace slapdash\coreBundle\service\responseWriter;
trait
ResponseWriterConfigTrait
{
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment