This post is because I will never remember how I found this link to the list of annotations for doctrine.
PHP the Right way – a website/book full of the most useful information you will find about PHP
It is important to understand what namespaces are in PHP and how to use them. Otherwise you will be lost and have many pains.
Below is a series of great videos explaining PHP namespaces little by little in easy to find and digest chunks.\
PHP namespaces 1/10: What is a namespace in PHP?
Everything about PHP namespaces – OOP in PHP | Part 10
Links, resources and videos about Docker in specific.
Manage sensitive data with Docker secrets – information from the documentation about using docker secrets. Secrets are for managing things like database passwords and other passwords.
Introducing docker secrets management – an article explaining what Docker secretes management is and it’s value.
I couldn’t remember where the hell I had seen this in the documentation so I am linking to it here. Why?
Because it absolutely isn’t where you would expect it to be like listed under Environmental variables. Hell no why list that shit there that’s all logical and shit.
It is actually under configuration all the way to the bottom under “List environment variables.” Would be so nice if that was in the Enironmental Variables page instead or a link to it or mention of it.
Storing secrets for Symfony applications – some ideas how to approach the topic
Mati – provides AML/KYC/Age verification
You can use this command to see what environmental variables Symfony can see.
php bin/console debug:dotenv
If it is not in that list, symfony cannot see it.
I just updated to version 5.4 and they have changed something because now all of my environmental variables are not seen.
So now I must do research and figure out what has been done and how to get my environmental variables back. I had them set as Linux system environment variables and it worked great. Then update and now BOOM DEAD.
The documentation here lists how to check the environmental variables towards the bottom of the page.
I have this problem where I remember like 75% of what I read, but can’t remember where when I want to review information to make sure I remember things correctly. I prefer to look things up rather than screw them up based on memory, because I would screw things up at least 25% of the time. LOL
So this is my list of symfony documentation links with explanations so I can remember where I read what later.
How to Use a Form without a Data Class – from the docs, this example and article talk about how to create forms where the data of the form belongs to two different tables. A lot of the time data from forms will be stored in multiple tables then reassembled when needed later. Symfony quick docs assume you are having a 1:1 form to table situation or using an ORM I hate ORM’s I have seen them destroy the performance of apps and you don’t know until PRODUCTION TIME WOOHOOO YAY!!!!!!! You should see the goofey ass structure some create and the insane queries.
Forms – Symfony documentation mentioned above. This assumes the 1:1 table to form use case. This is rarely the case for me. This works best with data that can be stored in NoSQL databases. NoSQL is all the rage and hype because new developers have no clue what they are doing. NoSQL has specific use cases otherwise you are creating a bowl of mashed spaghetti which will eventually become so slow your app will fail due to users quitting. NoSQL is best when your data structure will change or has no real definition. User profiles are a good use case for NoSQL. RDBMS have their specific use cases and so do Graph databases. NoSQL has many forms too, document store, key value and more. Learning the different types of Database and what they are used for will prevent you from making a bowl of Mashed spaghetti. This book is has excellent coverage of the subjects.
I couldn’t remember where the hell in the documentation I saw this. This is how you tell yarn to run encore and compile everything.