Skip to content

Instantly share code, notes, and snippets.

@Shaked
Last active August 3, 2018 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shaked/fc44705acb2d988e70974d17a72f8aa0 to your computer and use it in GitHub Desktop.
Save Shaked/fc44705acb2d988e70974d17a72f8aa0 to your computer and use it in GitHub Desktop.
Symfony error example
<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Psr\Log\LoggerInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Doctrine\ORM\EntityManagerInterface;
class IndexController extends Controller {
/**
* @Route("/", name="index_name")
* * insert into telegram_bot_profile (app_name, handle, is_webhook_active, webhook, token) VALUES ('EcoBotIL','EcoILStageBot', true, 'BASE_WEBHOOK_URL/telegram/update', '609221930:AAGs7nsP5tzZT5GPgvj4kno2ZAvgYSPGaJk');
*/
public function index() {
return new Response('Response');
}
/**
* @param UserPhotoDownloaderService $UserPhotoDownloaderService
*/
public function s(UserPhotoDownloaderService $UserPhotoDownloaderService) {
//Should throw an error - and log it to env.log
}
}
@Shaked
Copy link
Author

Shaked commented Aug 3, 2018

sa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment