... service class directly, it should be "\Symfony\Bundle\TwigBundle\TwigEngine" as I know:
```
/** @var \Symfony\Bundle\TwigBundle\TwigEngine $templating */
$templating = $this->container->get('templating');
// And you will get autocompletion here
$templating->render();
```
Cheers!
Hey Lampje,
Nope, Symfony doesn't has such feature out-of-the-box. Probably there's a bundle for that, but I don't now such, sorry. If you don't find any bundle, I think you could try to write it by yourself - Symfony ...
... extra-bundle` library). Anyways, the fix is to update one Symfony package:
```
composer up symfony/framework-bundle
```
That should fix the issue :). I'm running that on our course code right now so that the downloaded code works for everyone again without issues.
Cheers!
... Hey Victor,
I'm using this [link](https://symfony.com/doc/5.4/frontend/encore/installation.html#installing-encore-in-symfony-applications) to install encore(symfony/webpack-encore-bundle)
After running `yarn install ...
Hey Michael,
See symfony/webpack-encore-bundle recipe, it should have all that stuff like package.json, assets/controllers.json, etc. Here's the link to the latest version: https://github.com/symfony/recipes/tree ...
... project root) with this content:
`###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=f81422bf04497ffca0d1abc0b7125211
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS='^localhost|example\.com$'
###< symfony ...
I cannot get the nexylan slack bundle installed. My flex is up to date, I'm not on symfony 5.
This is what happens:
```
D:\Programming\4-2>composer require nexylan/slack-bundle php-http/guzzle6-adapter:1.1.1
Using ...
... /http-foundation/RequestStack.php(102): Symfony\Component\HttpFoundation\Request->getSession()
#7 /var/www/app/vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Provider/SessionProvider.php(19): Symfony\Component ...
|
{ |
|
// ... lines 2 - 3
|
|
"require": { |
|
// ... lines 5 - 7
|
|
"easycorp/easy-log-handler": "^1.0", |
|
// ... lines 9 - 23
|
|
"symfony/dotenv": "4.4.*", |
|
// ... lines 25 - 29
|
|
"symfony/monolog-bundle": "^3.5", |
|
// ... lines 31 - 43
|
|
}, |
|
// ... lines 45 - 102
|
|
} |
See Code Block in Script
... bundle (why have the extra subdirectory)? However, some pure libraries will come with a Symfony bundle embedded inside of them, and they *will* follow some convention like this. API Platform is one example: it is just a PHP ...
Hey Diaconescu!
Hmm. But in the tutorial, we say to install the bundle: https://knpuniversity.com/screencast/symfony-rest5/hateoas-php-library#installing-bazingahateoasbundle
```
composer require willdurand/hateoas ...
Your requirements could not be resolved to an installable set of packages.
Problem 1
- twig/extra-bundle v3.0.1 requires symfony/framework-bundle ^4.3|^5.0 -> no matching package found. I'm upgrading from 3.4 to flex 3.4 with skeleton
I'm resolved , simple. composer require twig-bundle ...
Thank you for the quick response. I have symfony/orm-pack installed and the following bundles relating to doctrine:
`
...
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
Doctrine ...
Preloading
... is being preloaded, but
@symfony/stimulus-bundle isn't... even though it's imported from
bootstrap.js. Why doesn't the preload "follow" that import like the others?
The key thing to understand is that, because we're ...
Bootstrapping Micro-Symfony
... library:
sensio/framework-extra-bundle - this is for annotation routing. If you don't want
that, you only need symfony/symfony.
Our blank project now has 1 file - composer.json - with just 2 dependencies:
Go back to ...
... //github.com/symfony/symfony/blob/4a053e5fed4422a834596da6a643978b603db18e/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php#L42 - which actually just calls the Router itself - https://github.com ...
... \symfony\src\Symfony\Bridge\Twig/Resources/views/Form).
500 Internal Server Error - InvalidArgumentException
1 linked Exception: Twig_Error_Loader »
Here's the code:
namespace AppBundle\Controller;
use Sensio\Bundle ...
... the function( at least in the code). Could you please help me? Here are the warnings I get :
`Remaining deprecation notices (5)
2x: Autowiring-types are deprecated since Symfony 3.3 and will be removed in 4.0. Use ...
Hey, rddro !
`hautelook/alice-bundle` is a bundle for standalone `nelmio/alice` library, which ports this lib and another one (fzaninotto/Faker) for the Symfony applications. If you see its dependencies - you will find ...
...
We have some services with twig injected, so no idea why fails at this point:
```
# AbstractController
# namespace Symfony\Bundle\FrameworkBundle\Controller;
/**
* Returns a rendered ...
1546
symfony bundle
Filter Results