Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I think your problem is within loading the services.yml in a CompilerPass. The loading of the "form.type" tags is happening also in a CompilerPass (<code>Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FormPass</code>). So your CompilerPass is executed after the form CompilerPass and it won't find your form type.</p> <p>If you are using the Symfony Standard Edition and you have created your bundle with the <a href="http://symfony.com/doc/current/bundles/SensioGeneratorBundle/commands/generate_bundle.html" rel="nofollow">generator command</a> you will have an <code>AwesomeSubmissionExtension</code> class in your DependencyInjection folder which is intended for loading service files.</p> <p>The following code is the changed extension code for loading yaml files. (The default is to XmlFileLoader)</p> <pre><code>namespace Awesome\SubmissionBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; class AwesomeSubmissionExtension extends Extension { /** * {@inheritDoc} */ public function load(array $configs, ContainerBuilder $container) { $configuration = new Configuration(); $config = $this-&gt;processConfiguration($configuration, $configs); $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader-&gt;load('services.yml'); } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload