Skip to content
Snippets Groups Projects
Select Git revision
  • aa3e2f6b89459a122b378ca51a034518c1d92271
  • develop default
  • master protected
  • 0.18
  • 0.17
  • 0.16
  • 0.15
  • 0.14
  • 0.13
  • 0.12
  • 0.11
  • 0.10
  • 0.9
  • 0.8
  • 0.7
  • 0.6
  • 0.5
  • 0.4
  • 0.3
  • 0.2
  • 0.1
21 results

introduction.rst

Blame
  • Test.php 984 B
    <?php
    
    namespace SimpleSAML\Module\accounting\Controller;
    
    use SimpleSAML\Configuration;
    use SimpleSAML\Locale\Translate;
    use SimpleSAML\Session;
    use SimpleSAML\XHTML\Template;
    use Symfony\Component\HttpFoundation\Request;
    
    class Test
    {
        protected Configuration $configuration;
        protected Session $session;
    
        /**
         * @param Configuration $configuration
         * @param Session $session The current user session.
         */
        public function __construct(Configuration $configuration, Session $session)
        {
            $this->configuration = $configuration;
            $this->session = $session;
        }
    
        /**
         * @param Request $request
         * @return Template
         * @throws \Exception
         */
        public function test(Request $request): Template
        {
            $template = new Template(Configuration::getConfig(), 'accounting:configuration.twig');
    
            $template->data = [
                'test' => Translate::noop('Accounting'),
            ];
    
            return $template;
        }
    }