src/Router.php
protected function processGroups(ServerRequestInterface $request) : void
    {
        $activePath = $request->getUri()->getPath();

        foreach ($this->groups as $key => $group) {
            // we want to determine if we are technically in a group even if the
            // route is not matched so exceptions are handled correctly
            if (strncmp($activePath, $group->getPrefix(), strlen($group->getPrefix())) === 0
                && ! is_null($group->getStrategy())
            ) {
                $this->setStrategy($group->getStrategy());
            }

            unset($this->groups[$key]);
            $group();
        }
    }
protected function processGroups(ServerRequestInterface $request) : void
    {
        $activePath = $request->getUri()->getPath();

        foreach ($this->groups as $key => $group) {
            // we want to determine if we are technically in a group even if the
            // route is not matched so exceptions are handled correctly
            if (strncmp($activePath, $group->getPrefix(), strlen($group->getPrefix())) === 0
                && ! is_null($group->getStrategy())
            ) {
                $this->setStrategy($group->getStrategy());
            }

            unset($this->groups[$key]);
            $group();
        }
    }
protected function processGroups ( ServerRequestInterface $ request ) : void { $ activePath = $ request -> getUri ( ) -> getPath ( ) ; foreach ( $ this -> groups as $ key => $ group ) { // we want to determine if we are technically in a group even if the // route is not matched so exceptions are handled correctly if ( strncmp ( $ activePath , $ group -> getPrefix ( ) , strlen ( $ group -> getPrefix ( ) ) ) === 0 && ! is_null ( $ group -> getStrategy ( ) ) ) { $ this -> setStrategy ( $ group -> getStrategy ( ) ) ; } unset ( $ this -> groups [ $ key ] ) ; $ group ( ) ; } }
Process all groups

Adds all of the group routes to the collection and determines if the group
strategy should be be used.

@param \Psr\Http\Message\ServerRequestInterface $request

@return void
Process all groups