1. Go to this page and download the library: Download darsyn/class-finder 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/ */
use Darsyn\ClassFinder\BundleClassFinder;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction()
{
$kernel = $this->container->get('kernel');
$finder = new BundleClassFinder($kernel);
// Find all container-aware commands across all bundles:
$containerAwareCommands = $finder->findClasses(
'Command',
'Command',
'Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand'
);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.