Last active
August 3, 2018 05:34
-
-
Save Shaked/fc44705acb2d988e70974d17a72f8aa0 to your computer and use it in GitHub Desktop.
Symfony error example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
} | |
} |
Author
Shaked
commented
Aug 3, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment