DemoCode.php 366 B

123456789101112131415161718
  1. <?php
  2. namespace Osinet\DemoBundle;
  3. use Symfony\Component\DependencyInjection\ContainerInterface;
  4. class DemoCode {
  5. protected $message;
  6. public function __construct(ContainerInterface $container, string $codeMessage) {
  7. $this->message = $container->getParameter('osinet_demo.message');
  8. }
  9. public function getMessage() {
  10. return $this->message;
  11. }
  12. }