517 search results

Hey @Алексей Хромец! > You said that you will explain this later, but I can't see this anywhere Yea, sorry about that! This really became a "we'll talk about this in a future tutorial" but that tutorial hasn't happened yet :p. >…
weaverryan
weaverryan
Read Full Comment
Hi MolloKhan, If I do a project search for "SYMFONY_DECRYPTION_SECRET" within PhpStorm, it only find references in the cache... This env is not set anywhere in my project, and I have generated a config/secrets/prod/prod.decrypt.private.php (that's how…
Hey picks! Hmm. I don't see `SYMFONY_DECRYPTION_SECRET` anywhere in these files? Where/how are you setting this? To give you a bit more context, the default value of the "decryption environment value" is `base64:default::SYMFONY_DECRYPTION_SECRET`. What I mean is…
weaverryan
weaverryan
Read Full Comment
… I know already the Symfony4 tutorial about forms that you mention, but I was wondering if and where there is a part in it about specifically "embedding forms", which was available in the Symfony3 tutorial. I am learning now how to use Symfony and find…
Francesco P.
Francesco P.
Read Full Comment
I appreciate you taking your time for a lengthy answer like this, I really do. Since I'm at my own, there's no confirmation coming from anywhere, that I'm doing things "right" or "wrong". > So, "learning by studying" and "learning through practice"…
denizgelion
denizgelion
Read Full Comment
these * .yaml configs for services we configured looks to me too complicated, cause I can't find a kinda common pattern and where to use/provide the properties we made. I hope someday it will change
…it might be tricky, we do cover some simple things with LIKE query in a few tutorials like: https://symfonycasts.com/screencast/doctrine-queries/and-where-or-where#query-with-like https://symfonycasts.com/screencast/doctrine-relations/search-form#comment-4793849784 Yes, using "LIKE" might…
…You're right. It is VERY confusing. And where are AdapterInterface implementing cache objects/classes defined? How do I navigate to them? Why do I feel we should be calling something to get the helper object using "cache.app" and not an arbitrarily picked interface…
Hey Emakina F.! Ah! I don't like that error at all! Do you have a `connection()` method anywhere in your code? I thought at first that this error might be some low-level error coming from phpspec. But, if I search the *entire* vendor…
weaverryan
weaverryan
Read Full Comment
…tasks, but complicates and require more work when your tasks become more complex. But this approach is flexible and allows you to build really complex forms that might be nested to each other and where some parts could be re-used in other forms. Cheers!
…you always do. You can handle this for with JS, or you can submit it as a normal form to a specific route you created that would handle the form data and where you would redirect user back to the referer URL. Well, I think…
Hey!! What's the magic with "use PHPUnit\Framework\TestCase;" ?? Because I can find it anywhere, and even PHPStorm doesnt. But the tests work with vendor/bin/simple-phpunit.
All files were created by hand while following along, I just always replace "Post" in place of "Article" to avoid a name mismatch. I don't think that's it. Just validated there were no name mismatches anywhere.
…all very clear. The method "contains" seems that I invented it, lol. 2- I hadn't seen it anywhere, I thought that "FilesystemCache" was like the "Filesystem" component, that wrote it on the disk directly without influencing memory (I think I made a mess with…
Jose carlos C.
Jose carlos C.
Read Full Comment
Hey Peter K.! Good question! You can use multiple roles *anywhere* in Symfony - the IsGranted() annotation, denyAccessUnlessGranted, and even in access_control I believe. But, I never do this, because, for me, it's not clear what passing 2 roles means. Is it an "OR…
weaverryan
weaverryan
Read Full Comment
Hi Andrzej! Yes, it *is* good to clear your plan password in eraseCredentials - it just makes sure that the plain password doesn't accidentally get stored anywhere, like the session. Symfony automatically calls this after you login. You just need to make sure that you…
weaverryan
weaverryan
Read Full Comment
Hey Caim, Agree, it should work with expressions as well, but anyway this one is easier to read but also should work well: https://knpuniversity.com/screencast/doctrine-queries/and-where-or-where#comment-3213019941 Cheers!
…Correct me, if I'm wrong, but I believe, it is impossible to invalidate a token to force a logout. The token isn't stored anywhere on the server, but simply contains the information necessary for its validation, such as the username, expiration time. I…
Vladimir Z.
Vladimir Z.
Read Full Comment
Hello, One question. You got 'FOREIGN KEY FK_66CF3FA885C4074C' Do we need to use indexes: @ORM\Table( indexes={@ORM\Index(name="user_fk_idx"... ?? When and where are indexes important?
No, I tried it a lot of times. It does not work. I cannot write php command anywhere accept xampp/php. I write php my_s/composer.phar require knplabs/knp-markdown-bundle and... i have it in php/vendor. It does not work =…
Maksimov Alexander
Maksimov Alexander
Read Full Comment