PHP code example of krak / symfony-playground
1. Go to this page and download the library: Download krak/symfony-playground library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
krak / symfony-playground example snippets
return [
// ...
Krak\SymfonyPlayground\PlaygroundBundle::class => ['dev' => true],
];
/** this function is autowired, so type hint any service to access it here */
return function(App\Service\MyService $service, Psr\Log\LoggerInterface $log) {
$log->info("Playing with my symfony app!");
};