…Mercure topic for "stream" updates.
The weird thing about this line is that it doesn't affect the div it's attached to at all. You could put this anywhere on the page: it's just a directive to "globally listen" to that topic.
So…
…importmap.php` via `importmap:require`
B) All `./relative` imports need to change to `./relative.js`
C) CSS needs to be updated to add a `link` tag to `base.html.twig` (and anywhere you're importing CSS from inside a JS file needs to be reworked).
..…
…5453`
So.. if you're using 4.4.2 or later, just click anywhere in the Profiler to open it full screen and then look for the new EasyAdmin button near the bottom of the sidebar. There are now several links including one for documentation.
…in Symfony, we tend to use `ROLE_USER` as an easy way to simple check "if the user is logged in".
Beyond that, you're free to make up whatever roles you want. They're not registered anywhere. For example, to add `ROLE_EDITOR`, you…
…innerHTML = error.message;
}
}
```
That last `error.message` part I'm not 100% sure about. If that's wrong, `console.log(error)` to see what that is and where the HTML response might be. And please, if you get this working, let me know to…
…blank for some reason. Something must be wrong with the environmental variables, I just wish I could figure out what! Any ideas aside from the .env.test? Why would it not be seeing what's in the .env file if it's not overridden anywhere?
…ValidatorInterface $validator)
{
$this->validator = $validator;
}
public function prePersist(/*...*/)
{
// ...
$this->validator->validate($entity)
}
// ....
}
```
This is a small example, it's hard to say how exactly you should use it, because I don't see your code, but it should be easy to inject anywhere!
Cheers!
…The first time is when the entire object is being denormalized, and then this returns false.
Soooooo, that's the FULL story of how my string UUID becomes a Uuid object. I hope this helps you see why and where your situation is different.
Cheers!
…of my browsers.
I've restarted the server, reinstalled the debug-bundle, made sure web_profiler.toolbar is set to true and that APP_ENV=dev... and still nothing.
What is wrong?
The /_profiler/ path works on the browser, but the toolbar is not appearing anywhere.
…public access in class "Symfony\Bundle\SecurityBundle\DataCollector\SecurityDataCollector".
I understand the code enabling the new authenticator manager has been dropped in symfony 6, since it is now the only authentication system. But I have checked, I don't call that anywhere in my code.
…couldn't find anything obviously wrong but when I checked secrets:list --reveal --env=dev I saw that the value and local value were both empty. I shall work through those videos again. Another thing I wondered about was whether the secret should be quoted anywhere.
…m not sure that you need Finder. Finder is really great at looking at a directory and telling you what is inside. But you already *know* exactly what files you have and where they are. In a sense, your UploadedFile table is kind of like…
…then there's a bug with how the bundle is not overriding this template. Here is the template that SHOULD be used, and where you can see the |trans filter: https://github.com/BabDev/PagerfantaBundle/blob/3.x/templates/macros.html.twig#L9-L15
Cheers!
…= 'Spinosaurus'
```
(I had to change to Spinosaurus, my son's current favorite dino ).
Then, you can use that inside Stimulus or anywhere else:
```
// assets/controllers/my-controller.js
import { BEST_DINO } from '../data';
```
You can also export a giant "object" from your file. Heck…
…but when I got here I saw you have implemented "stimulus_controller", but going back to the courses I do not see this implementation explained anywhere. What you did in the first course was to add a questionVote method to the QuestionController and up/downvote…
…try to debug the argument that is supplied to that foreach - you can use "dd($variableName)" to dump the variable. Then, try to debug why you're passing there not an array and where. Then, it should be easy to fix.
I hope this helps…
…some "task[tech]" data for the technician. But, i believe that you are not actually sending the technician "id" anywhere in the POST data. I could *totally* be wrong about that part - and I hope I am. Somehow you DO need to communicate the "tech…
|
|
// ... lines 1 - 11
|
|
class CheeseListingIsPublishedExtension implements QueryCollectionExtensionInterface, QueryItemExtensionInterface |
|
{ |
|
private $security; |
|
|
|
public function __construct(Security $security) |
|
{ |
|
$this->security = $security; |
|
} |
|
|
|
public function applyToCollection(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null) |
|
{ |
|
$this->addWhere($queryBuilder, $resourceClass); |
|
} |
|
|
|
public function applyToItem(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, array $identifiers, string $operationName = null, array $context = []) |
|
{ |
|
$this->addWhere($queryBuilder, $resourceClass); |
|
} |
|
|
|
private function addWhere(QueryBuilder $queryBuilder, string $resourceClass): void |
|
{ |
|
if ($resourceClass !== CheeseListing::class) { |
|
return; |
|
} |
|
|
|
if ($this->security->isGranted('ROLE_ADMIN')) { |
|
return; |
|
} |
|
|
|
$rootAlias = $queryBuilder->getRootAliases()[0]; |
|
|
|
if (!$this->security->getUser()) { |
|
$queryBuilder->andWhere(sprintf('%s.isPublished = :isPublished', $rootAlias)) |
|
->setParameter('isPublished', true); |
|
} else { |
|
$queryBuilder->andWhere(sprintf(' |
|
%s.isPublished = :isPublished |
|
OR %s.owner = :owner', |
|
$rootAlias, $rootAlias |
|
)) |
|
->setParameter('isPublished', true) |
|
->setParameter('owner', $this->security->getUser()); |
|
} |
|
} |
|
} |
See Code Block in Script
…Swagger doesn't display parent_id. I'm wondering if this is just a documentation problem (it does not show in swagger but DOES exist when using the API endpoint) or if the field does not show anywhere.
Also, you mentioned that you're expecting…
…processed in the same application? So far, submitting the 'employee' login form doesn't submit any form data to anywhere that I can tell. Tried using http_basic_ldap and there seemed to be session conflicts between the two types of users, not exactly sure…
x
511