PHP code example of webwingscz / skautis-symfony

1. Go to this page and download the library: Download webwingscz/skautis-symfony library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webwingscz / skautis-symfony example snippets


final class TeamController extends AbstractController
{
    #[Route('/oddil')]
    public function index(PersonApi $people, #[CurrentUser] SkautisUser $user): Response
    {
        return $this->render('team.html.twig', [
            'members' => $people->listByUnit($user->getUnitId()),
        ]);
    }
}

Webwings\SkautisBundle\WebwingsSkautisBundle::class => ['all' => true],

#[Route('/login', name: 'app_login', methods: ['GET', 'POST'])]   // POST bere authenticator
#[Route('/logout', name: 'app_logout', methods: ['GET', 'POST'])] // obsluhuje firewall

$rows = $client->callAll('OrganizationUnit', 'PersonAll', ['ID_Unit' => 1002]);
$one  = $client->callOne('OrganizationUnit', 'UnitDetail', ['ID' => 1002]);