diff --git a/assets/css/style.homepage.scss b/assets/css/style.homepage.scss index 866e107..92b0aa2 100644 --- a/assets/css/style.homepage.scss +++ b/assets/css/style.homepage.scss @@ -90,13 +90,8 @@ header section div.buttons > a { padding: 25px 150px; margin-bottom: 20px; - -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); - -webkit-border-radius: 3px; - border-radius: 3px; - -webkit-transition: all 250ms ease-in-out; - -moz-transition: all 250ms ease-in-out; - -o-transition: all 250ms ease-in-out; + border-radius: 20px; transition: all 250ms ease-in-out; } diff --git a/config/packages/dev/monolog.yaml b/config/packages/dev/monolog.yaml index b1998da..29d8584 100644 --- a/config/packages/dev/monolog.yaml +++ b/config/packages/dev/monolog.yaml @@ -3,7 +3,7 @@ monolog: main: type: stream path: "%kernel.logs_dir%/%kernel.environment%.log" - level: debug + level: error channels: ["!event"] # uncomment to get logging in your browser # you may have to allow bigger header sizes in your Web server configuration diff --git a/config/services.yaml b/config/services.yaml index f4743ac..3c139c4 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -40,24 +40,16 @@ services: arguments: - '@gos_web_socket.pdo.periodic_ping' -# mineseeker.topic_sample_service: -# class: App\Topic\MineseekerTopic -# tags: -# - { name: gos_web_socket.topic } -# arguments: -# - "@gos_web_socket.websocket.client_manipulator" -# - '@doctrine.orm.entity_manager' -# - '@request_stack' -# - '@logger' -# -# mineseeker.rpc_sample_service: -# class: App\Rpc\MineseekerRpc -# public: true -# tags: -# - { name: gos_web_socket.rpc } -# arguments: -# - '@doctrine.orm.entity_manager' -# - '@logger' + mineseeker.topic_sample_service: + class: App\Topic\MineseekerTopic + tags: + - { name: gos_web_socket.topic } + + mineseeker.rpc_sample_service: + class: App\Rpc\MineseekerRpc + public: true + tags: + - { name: gos_web_socket.rpc } gos_web_socket_server.client_event.listener: class: App\EventListener\MineseekerClientEventListener diff --git a/src/Controller/GameController.php b/src/Controller/GameController.php index 9880f72..edbb3c3 100644 --- a/src/Controller/GameController.php +++ b/src/Controller/GameController.php @@ -1,41 +1,88 @@ + */ +class GameController extends AbstractController { - public function index() + /** + * It is the homepage + * + * @return Response + */ + public function index(): Response { return $this->render('Game/index.html.twig'); } - public function play(Request $request) + /** + * It is the game itself + * + * @param Request $request + * + * @return Response + */ + public function play(Request $request): Response { return $this->render('Game/play.html.twig', array( - 'env' => $this->container->getParameter('kernel.environment'), + 'env' => getenv('APP_ENV'), 'ssl' => $request->isSecure() ? 'true' : 'false' )); } - public function privacy() + /** + * It is the Privacy & Policy + * + * @return Response + */ + public function privacy(): Response { return $this->render('Official/privacy.html.twig'); } - public function terms() + /** + * It is the Terms of Use + * + * @return Response + */ + public function terms(): Response { return $this->render('Official/terms.html.twig'); } - public function contact() + /** + * It is the contact informations + * + * @return Response + */ + public function contact(): Response { return $this->render('Official/contact.html.twig'); } - public function landing() + /** + * It is a landing page + * + * @return Response + */ + public function landing(): Response { return $this->render('Official/landing.html.twig'); } diff --git a/src/Entity/Gamer.php b/src/Entity/Gamer.php index d2cc0bb..418bb79 100644 --- a/src/Entity/Gamer.php +++ b/src/Entity/Gamer.php @@ -1,10 +1,23 @@ + * * @ORM\Entity(repositoryClass="App\Repository\GamerRepository") */ class Gamer diff --git a/src/Entity/Grid.php b/src/Entity/Grid.php index 820aeed..31aa330 100644 --- a/src/Entity/Grid.php +++ b/src/Entity/Grid.php @@ -1,10 +1,23 @@ + * * @ORM\Entity(repositoryClass="App\Repository\GridRepository") */ class Grid diff --git a/src/Entity/GridRow.php b/src/Entity/GridRow.php index b9d8650..638040a 100644 --- a/src/Entity/GridRow.php +++ b/src/Entity/GridRow.php @@ -1,10 +1,23 @@ + * * @ORM\Entity(repositoryClass="App\Repository\GridRowRepository") */ class GridRow diff --git a/src/Entity/PlayedGame.php b/src/Entity/PlayedGame.php index 0821640..7a289e9 100644 --- a/src/Entity/PlayedGame.php +++ b/src/Entity/PlayedGame.php @@ -1,4 +1,12 @@ + * * @ORM\Entity(repositoryClass="App\Repository\PlayedGameRepository") */ class PlayedGame diff --git a/src/Entity/Step.php b/src/Entity/Step.php index 5f4cfd0..59b2c80 100644 --- a/src/Entity/Step.php +++ b/src/Entity/Step.php @@ -1,10 +1,23 @@ + * * @ORM\Entity(repositoryClass="App\Repository\StepRepository") */ class Step diff --git a/src/EventListener/MineseekerClientEventListener.php b/src/EventListener/MineseekerClientEventListener.php index a6fd549..b09ab7d 100644 --- a/src/EventListener/MineseekerClientEventListener.php +++ b/src/EventListener/MineseekerClientEventListener.php @@ -1,4 +1,12 @@ + */ class MineseekerClientEventListener { /** @@ -14,7 +28,7 @@ class MineseekerClientEventListener * * @param ClientEvent $event */ - public function onClientConnect(ClientEvent $event) + public function onClientConnect(ClientEvent $event): void { $conn = $event->getConnection(); @@ -26,7 +40,7 @@ class MineseekerClientEventListener * * @param ClientEvent $event */ - public function onClientDisconnect(ClientEvent $event) + public function onClientDisconnect(ClientEvent $event): void { $conn = $event->getConnection(); @@ -38,7 +52,7 @@ class MineseekerClientEventListener * * @param ClientErrorEvent $event */ - public function onClientError(ClientErrorEvent $event) + public function onClientError(ClientErrorEvent $event): void { $conn = $event->getConnection(); $e = $event->getException(); @@ -51,7 +65,7 @@ class MineseekerClientEventListener * * @param ServerEvent $event */ - public function onServerStart(ServerEvent $event) + public function onServerStart(ServerEvent $event): void { $event = $event->getEventLoop(); @@ -63,7 +77,7 @@ class MineseekerClientEventListener * * @param ClientRejectedEvent $event */ - public function onClientRejected(ClientRejectedEvent $event) + public function onClientRejected(ClientRejectedEvent $event): void { $origin = $event->getOrigin; diff --git a/src/Periodic/MinePeriodic.php b/src/Periodic/MinePeriodic.php index 0a97b3b..4186628 100644 --- a/src/Periodic/MinePeriodic.php +++ b/src/Periodic/MinePeriodic.php @@ -1,15 +1,34 @@ + */ class MinePeriodic implements PeriodicInterface { /** @var PdoPeriodicPing */ private $ping; + /** + * MinePeriodic constructor. + * + * @param PdoPeriodicPing $ping + */ public function __construct(PdoPeriodicPing $ping) { $this->ping = $ping; diff --git a/src/Repository/GamerRepository.php b/src/Repository/GamerRepository.php index fbf8eb6..bdcc3d3 100644 --- a/src/Repository/GamerRepository.php +++ b/src/Repository/GamerRepository.php @@ -1,4 +1,12 @@ */ class GamerRepository extends ServiceEntityRepository { + /** + * GamerRepository constructor. + * + * @param ManagerRegistry $registry + */ public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Gamer::class); diff --git a/src/Repository/GridRepository.php b/src/Repository/GridRepository.php index b388df4..e692e0e 100644 --- a/src/Repository/GridRepository.php +++ b/src/Repository/GridRepository.php @@ -1,4 +1,12 @@ + * * @method Grid|null find($id, $lockMode = null, $lockVersion = null) * @method Grid|null findOneBy(array $criteria, array $orderBy = null) * @method Grid[] findAll() @@ -14,6 +27,11 @@ use Doctrine\Common\Persistence\ManagerRegistry; */ class GridRepository extends ServiceEntityRepository { + /** + * GridRepository constructor. + * + * @param ManagerRegistry $registry + */ public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Grid::class); diff --git a/src/Repository/GridRowRepository.php b/src/Repository/GridRowRepository.php index d0aad40..f15c041 100644 --- a/src/Repository/GridRowRepository.php +++ b/src/Repository/GridRowRepository.php @@ -1,4 +1,12 @@ + * * @method GridRow|null find($id, $lockMode = null, $lockVersion = null) * @method GridRow|null findOneBy(array $criteria, array $orderBy = null) * @method GridRow[] findAll() @@ -14,6 +27,11 @@ use Doctrine\Common\Persistence\ManagerRegistry; */ class GridRowRepository extends ServiceEntityRepository { + /** + * GridRowRepository constructor. + * + * @param ManagerRegistry $registry + */ public function __construct(ManagerRegistry $registry) { parent::__construct($registry, GridRow::class); diff --git a/src/Repository/PlayedGameRepository.php b/src/Repository/PlayedGameRepository.php index 27996ad..9c8025a 100644 --- a/src/Repository/PlayedGameRepository.php +++ b/src/Repository/PlayedGameRepository.php @@ -1,4 +1,12 @@ + * * @method PlayedGame|null find($id, $lockMode = null, $lockVersion = null) * @method PlayedGame|null findOneBy(array $criteria, array $orderBy = null) * @method PlayedGame[] findAll() @@ -14,6 +27,11 @@ use Doctrine\Common\Persistence\ManagerRegistry; */ class PlayedGameRepository extends ServiceEntityRepository { + /** + * PlayedGameRepository constructor. + * + * @param ManagerRegistry $registry + */ public function __construct(ManagerRegistry $registry) { parent::__construct($registry, PlayedGame::class); diff --git a/src/Repository/StepRepository.php b/src/Repository/StepRepository.php index 16e985f..2c10ba2 100644 --- a/src/Repository/StepRepository.php +++ b/src/Repository/StepRepository.php @@ -1,4 +1,12 @@ + * * @method Step|null find($id, $lockMode = null, $lockVersion = null) * @method Step|null findOneBy(array $criteria, array $orderBy = null) * @method Step[] findAll() @@ -14,6 +27,11 @@ use Doctrine\Common\Persistence\ManagerRegistry; */ class StepRepository extends ServiceEntityRepository { + /** + * StepRepository constructor. + * + * @param ManagerRegistry $registry + */ public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Step::class); diff --git a/templates/Game/index.html.twig b/templates/Game/index.html.twig index 13bf1ee..5b97bd3 100644 --- a/templates/Game/index.html.twig +++ b/templates/Game/index.html.twig @@ -54,8 +54,8 @@ #}

- version {{ version }} · MineSeeker©{{ "now"|date("Y") }} · www.laszlolang.com + version {{ version }} • MineSeeker © {{ "now"|date("Y") }} • + www.splendidbear.org

MineSeeker Logo @@ -79,11 +79,11 @@