Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Symfony's DomCrawler component has a method called each that is meant to be used with a closure. How do I replace the closure with a * method in the class?
- */
- $installs = $installRows->each(
- function(Crawler $node, $i){
- //Do $node stuff
- }
- );
- return $installs;
- $installs = $installRows->each($this->assembleInstallations($node, $i));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement