Currently I try to use this PHP Spreadsheet Bundle for Symfony 4: https://github.com/roromix/SpreadsheetBundle
But my attempts to use this bundle are not successful. Can't find it as a service (php bin/console debug:autowiring) and the way below is also wrong.
<?php
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Roromix\Bundle\SpreadsheetBundle\RoromixSpreadsheetBundle;
class TranslationController extends Controller
{
/**
* @Route("/")
*/
public function index()
{
$RoromixSpreadsheetBundle = new RoromixSpreadsheetBundle();
//...
}
}
?>