|
// ... lines 1 - 5
|
|
use Symfony\Bundle\SecurityBundle\Security; |
|
// ... lines 7 - 12
|
|
class AddOwnerGroupsNormalizer implements NormalizerInterface, SerializerAwareInterface |
|
{ |
|
public function __construct(private NormalizerInterface $normalizer, private Security $security) |
|
{ |
|
} |
|
// ... lines 18 - 38
|
|
} |
See Code Block in Script
|
// ... lines 1 - 5
|
|
use Symfony\Bundle\SecurityBundle\Security; |
|
// ... lines 7 - 9
|
|
#[AsDecorator('api_platform.serializer.context_builder')] |
|
class AdminGroupsContextBuilder implements SerializerContextBuilderInterface |
|
{ |
|
public function __construct(private SerializerContextBuilderInterface $decorated, private Security $security) |
|
{ |
|
} |
|
// ... lines 16 - 26
|
|
} |
See Code Block in Script
|
// ... lines 1 - 9
|
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; |
|
// ... lines 11 - 15
|
|
class MailerTest extends KernelTestCase |
|
{ |
|
// ... lines 18 - 43
|
|
public function testIntegrationSendAuthorWeeklyReportMessage() |
|
{ |
|
self::bootKernel(); |
|
$symfonyMailer = $this->createMock(MailerInterface::class); |
|
// ... lines 48 - 61
|
|
} |
|
} |
See Code Block in Script
... store your files inside "Resources/config/doctrine" (in your bundle) and Symfony will find them, but do not try to use more than one type of mapping, because Symfony reads only one type of mapping.
You can get more ...
Hey Nan,
You probably means how to do it in Symfony Flex. Looks like this bundle somehow does not a Symfony recipe. I also wonder why, so I opened an issue: https://github.com/doctrine/DoctrineCacheBundle/issues/131 ...
Hello there! HELP!
Recently I've migrated from Symfony 5.4 to Symfony 6.4 (64.10), with this upgrade doctrine/orm and doctrine/doctrine-migrations-bundle also have been upgraded:
```
"doctrine/orm": "3.2.2 ...
Hey |mention:80223| ,
We use `symfony/stimulus-bundle` v2.9.1 in the video, so to match the code in the video we recommend you install that exact version. For this, you would need to run:
```terminal
composer ...
Hey,
Ah, DependencyInjection is the most mystery dir in bundle structure at first sight :). First of all you need to understand what is a Symfony bundle. You could also check this course, which explains basic things ...
... ].
- endroid/qr-code 3.0.0 requires symfony/options-resolver ^2.7|^3.0|^4.0 -> found symfony/options-resolver[v2.7.0, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.44] but these were not loaded, likely because it ...
... "use" statement for e.g. "Symfony\Bundle\FrameworkBundle\Tests\Functional\app\AppKernel" or "Symfony\Bundle\SecurityBundle\Tests\Functional\app\AppKernel"?
in app_dev.php line 27
During the work with composer, I had to ...
... suppose you're talking about symfony/framework-bundle one? You can do it with
$ composer recipe:install symfony/framework-bundle --force --reset
It will force install the latest recipe overwriting the existent data, but then with "git diff" you may revert some good changes you want to keep.
I hope this helps!
Cheers!
Hey Norris,
Did you download the course code and start from the start/ directory? Or do you follow this course on your own project? What version of Symfony do you have? Depends on your Symfony version, probably you can ...
... /willdurand/BazingaJsTranslationBundle/tree/master/Resources/config
Does anyone have any other input on this?!
Edit
-----
I have not personally tested that bundle out on a Symfony 5 install myself; I just read the commit comments.
... installed with Composer :p Even if it could - you can't just link it from vendor/ dir, you have to copy it to the public/ dir somehow. Usually, there's a special bundles for it like symfony/assetic-bundle: https://github.com ...
Hey Tac-Tacelosky!
Sorry for the slow reply! So, what's happening here is that the list of "reserved" words is specific to whatever database platform you're using - https://github.com/symfony/maker-bundle/blob ...
Hey Daniel!
In earlier Symfony days, we recommended that you create 1 bundle for every feature. Many tutorials (including on this site) still reflect this. But we realized that this can add extra over-organization ...
Your controller extends AbstractController (/vendor/symfony/framework-bundle/Controller/AbstractController.php), which uses ControllerTrait (/vendor/symfony/framework-bundle/Controller/ControllerTrait.php). So render ...
|
# Hello LoremIpsumBundle! |
|
|
|
LoremIpsumBundle is a way for you to generate "fake text" into |
|
your Symfony application, but with *just* a little bit more joy |
|
than your normal lorem ipsum. |
|
|
|
Install the package with: |
|
|
|
```console |
|
composer require knpuniversity/lorem-ipsum-bundle --dev |
|
``` |
|
|
|
And... that's it! If you're *not* using Symfony Flex, you'll also |
|
need to enable the `KnpU\LoremIpsumBundle\KnpULoremIpsumBundle` |
|
in your `AppKernel.php` file. |
|
|
|
## Usage |
|
|
|
This bundle provides a single service for generating fake text, which |
|
you can autowire by using the `KnpUIpsum` type-hint: |
|
// ... lines 21 - 94
|
See Code Block in Script
... Hello,
I can't install stof/doctrine-extensions-bundle.
I get the following error message:
Using version ^1.4 for stof/doctrine-extensions-bundle
./composer.json has been updated
Loading composer repositories ...
... Hi!
I'm running this code on Ubuntu and on the point of
composer require migrations
I get the following error:
`
Using version ^3.0 for doctrine/doctrine-migrations-bundle
./composer.json has been updated
Loading ...
1545
symfony bundle
Filter Results