make methods public
This commit is contained in:
@@ -9,14 +9,14 @@ use \Psr\Http\Message\{ResponseInterface, ServerRequestInterface};
|
|||||||
|
|
||||||
final class Bootstrap extends Controller
|
final class Bootstrap extends Controller
|
||||||
{
|
{
|
||||||
static private function getBootstrapScript(ServerRequestInterface $request): ResponseInterface
|
static 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/jss/bootstrap.js'),
|
||||||
headers: ['Content-Type' => ['application/javascript; charset=utf-8']]);
|
headers: ['Content-Type' => ['application/javascript; charset=utf-8']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static private function getBootstrapStyle(ServerRequestInterface $request): ResponseInterface
|
static 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/jss/bootstrap.js'),
|
||||||
|
|||||||
Reference in New Issue
Block a user