src/DataProvider/Home.php line 45
<?php
// api/src/DataProvider/BlogPostCollectionDataProvider.php
namespace App\DataProvider;
use Adldap\Adldap;
use App\Common\Functions\Helpers;
use App\Document\Auth\User;
use App\Functions\Common\AppsLogin;
use App\Functions\Common\AppsLogout;
use App\Functions\Common\AuthProvider;
use App\Functions\Common\Register;
use App\Functions\Common\ResetPassword;
use App\Functions\Common\UserValidations;
use App\Functions\Common\Variables;
use Doctrine\ODM\MongoDB\DocumentManager as MongoDBDocumentManager;
use Lexik\Bundle\JWTAuthenticationBundle\Security\Http\Authentication\AuthenticationSuccessHandler;
use Lexik\Bundle\JWTAuthenticationBundle\Services\JWTTokenManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Bundle\SecurityBundle\Security;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Serializer\SerializerInterface;
class Home extends AbstractController
{
protected $headers = array('Content-Type', 'application/json');
public $validator;
public $dispatcher;
public $propertyAccessor;
private $options = Variables::SERIALIZER_OPTIONS;
private $options_de = Variables::DESERIALZER_OPTIONS;
public function getInfo(Request $request){
ob_start();
phpinfo();
$phpinfo = ob_get_clean();
return new Response(
'<html><body>'.$phpinfo.'</body></html>'
);
}
public function home(Request $request){
return $this->render('home.html.twig');
}
}