511 search results

…is this one: "Module not found". The module in this case is actually the image file! What does your CSS code look like and where is your image relative to your CSS file? Double-check the path. It could be something more subtle or deeper…
weaverryan
weaverryan
Read Full Comment
…etc ... ). So a user should be able to connect from anywhere by calling /authentication_token and put the token as Bearer token inside the next request. How should I store user email and password on my frontend ? How should I manage JWT expiration and refreshing…
Nathan D.
Nathan D.
Read Full Comment
…general - it should activate ESI for your entire system, not just for the App namespace. Do you have `framework.esi` config anywhere else in your app? I want to make sure that you don't have ESI *disabled* on accident in the "dev" environment. Otherwise…
weaverryan
weaverryan
Read Full Comment
…the api will be located on api.example.com and the client on example.com. In this case api will not provide a cookie, because it's not a samesite. You said that you will explain this later, but I can't see this anywhere.
oleksii_khromets
oleksii_khromets
Read Full Comment
…an email: something is not working... when I wanted to see elephant. I will probably go to prod.log and see all errors within last few days as he didnt specified time and where exactly he couldnt see elephant. What I would like to do…
…method not parsing the template twice ? (like the styles where we need to manually reset) I haven't found any related issues anywhere in the comments nor google and even though I could continue restarting my worker on local, it is getting somewhat annoying and…
Thibault V.
Thibault V.
Read Full Comment
…not aware of anything. The important piece in this video is that we're creating a custom field (` UserSelectTextType`) and adding the `attr` option to *its* `configureOptions()` method. We're *not* adding it in the main form class anywhere - e.g. `ArticleFormType`. This allows us…
weaverryan
weaverryan
Read Full Comment
…answer I think I might *not* use roles for this! Here's the important point: if you forget about security for a minute and pretend that we're not storing *any* roles *anywhere* in the database, you *already* have enough information to know which user…
weaverryan
weaverryan
Read Full Comment
…since we need to add a dev and prod config anyway. The other channels in the prod and dev monolog.yaml files are not declared at the top level and don't appear to be anywhere else either (or my grep is failing in vendor)
…a service (that's what the second section does) and activating autowiring (and autoconfiguration) for all services registered in this file (that's the first part). That's why, if you put something anywhere outside of src/, this won't work. As a best-practice…
weaverryan
weaverryan
Read Full Comment
// ... lines 1 - 11
class CheeseListingIsPublishedExtension implements QueryCollectionExtensionInterface, QueryItemExtensionInterface
{
// ... lines 14 - 20
public function applyToCollection(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null)
{
$this->addWhere($queryBuilder, $resourceClass);
}
// ... lines 25 - 30
private function addWhere(QueryBuilder $queryBuilder, string $resourceClass): void
{
if ($resourceClass !== CheeseListing::class) {
return;
}
if ($this->security->isGranted('ROLE_ADMIN')) {
return;
}
$rootAlias = $queryBuilder->getRootAliases()[0];
$queryBuilder->andWhere(sprintf('%s.isPublished = :isPublished', $rootAlias))
->setParameter('isPublished', true);
}
}
See Code Block in Script
…you have, for some strange reason, invalid users on your Database. If that's not the case, then I'm missing something, probably would be useful if I can see your code. Just upload to anywhere (Github) and send me a link to it :) Cheers!
MolloKhan
MolloKhan
Read Full Comment
…issue on API Platform where I recommended adding something that would look more like `access_control="ROLE_USER"`, but I'm not sure if it will go anywhere. The problem is that using the "expression language" (the way it is now) is useful in some…
weaverryan
weaverryan
Read Full Comment
…asnwer how to do that but it did not worked with date strings when they were parameters, but I have made a fix, did not test much, but maybe it will work. Then will need to find more convenient way to access it from anywhere.
Lijana Z.
Lijana Z.
Read Full Comment
…API with team info (id and name), and Team data with Users (id, name, and age) in it. But `is_leader` from the bridge table cannot be pulled from anywhere. How can I add `is_leader` in the Users/Teams api? Thanks for your help.
…but why it crashes your paginator? it should not do so. Paginator shouls just return nothing if nothing to show, i.e. there's no data. It makes me feel you're doing something incorrect. I wonder what error do you see and where? Cheers!
…showing up as broken images? If you go directly to the thumbnail image src that's broken in a new browser tab, do you see the image? Or an error? What does your Twig code look like and where are the original images stored? Cheers!
weaverryan
weaverryan
Read Full Comment
…flashBag is accessed Yep, this is what you'll need to do. Once the flashbag is accessed, the values are fully deleted from the session/flashbag - so there's no record of them anywhere anymore. You'll need to track them on your own. Cheers!
weaverryan
weaverryan
Read Full Comment
…must be run in a work tree when I type into the terminal git add . or git status..... this is after I pushed up the initial repository, that symfony did not make for me. I can not find the solution to this anywhere. Please advise.
Hey Skylar! Ha! I see you are paying attention to the important details ;). Actually, this is an OSX shortcut - not from PhpStorm. It's control+command+spacebar on OSX to bring up that menu anywhere. I... kinda use it all the time. Cheers!
weaverryan
weaverryan
Read Full Comment