Skip to content

Commit

Permalink
Update sf2plugin.php
Browse files Browse the repository at this point in the history
  • Loading branch information
juliens committed Jan 27, 2016
1 parent c0abd92 commit c9c9d90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sources/wordpress/sf2/sf2plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class Sf2Plugin {
private $container = null;
Expand Down Expand Up @@ -83,7 +84,10 @@ private function loadSf2()
}
$wp_loader = $this->container->get('wordpress.loader');
$wp_loader->load();


$request = Request::createFromGlobals();
$response = new Response();
$kernel->terminate($request, $response);

}

Expand Down

0 comments on commit c9c9d90

Please sign in to comment.