File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ The result is an array of values returned by the anonymous function calls.
267267When using nested crawler, beware that ``filterXPath() `` is evaluated in the
268268context of the crawler::
269269
270-     $crawler->filterXPath('parent')->each(function (Crawler $parentCrawler, $i): avoid  { 
270+     $crawler->filterXPath('parent')->each(function (Crawler $parentCrawler, $i): void  { 
271271        // DON'T DO THIS: direct child can not be found 
272272        $subCrawler = $parentCrawler->filterXPath('sub-tag/sub-child-tag'); 
273273
Original file line number Diff line number Diff line change @@ -712,6 +712,10 @@ stores in the session of the test client. If you need to define custom
712712attributes in this token, you can use the ``tokenAttributes `` argument of the
713713:method: `Symfony\\ Bundle\\ FrameworkBundle\\ KernelBrowser::loginUser ` method.
714714
715+ To set a specific firewall (``main `` is set by default)::
716+ 
717+     $client->loginUser($testUser, 'my_firewall'); 
718+ 
715719.. note ::
716720
717721    By design, the ``loginUser() `` method doesn't work when using stateless firewalls.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments