This commit is contained in:
2026-08-15 13:18:10 -04:00
parent 2b47495d60
commit a16a554457
+2 -2
View File
@@ -12,14 +12,14 @@ final class Bootstrap extends Controller
public function getBootstrapScript(ServerRequestInterface $request): ResponseInterface public function getBootstrapScript(ServerRequestInterface $request): ResponseInterface
{ {
return new Text( return new Text(
text: file_get_contents(getcwd() . '/vendor/twbs/bootstrap/dist/jss/bootstrap.js'), text: file_get_contents(getcwd() . '/vendor/twbs/bootstrap/dist/js/bootstrap.js'),
headers: ['Content-Type' => ['application/javascript; charset=utf-8']]); headers: ['Content-Type' => ['application/javascript; charset=utf-8']]);
} }
public function getBootstrapStyle(ServerRequestInterface $request): ResponseInterface public function getBootstrapStyle(ServerRequestInterface $request): ResponseInterface
{ {
return new Text( return new Text(
text: file_get_contents(getcwd() . '/vendor/twbs/bootstrap/dist/jss/bootstrap.js'), text: file_get_contents(getcwd() . '/vendor/twbs/bootstrap/dist/css/bootstrap.css'),
headers: ['Content-Type' => ['text/css; charset=utf-8']]); headers: ['Content-Type' => ['text/css; charset=utf-8']]);
} }