Skip to content

Instantly share code, notes, and snippets.

View tomasnorre's full-sized avatar
🐘

Tomas Norre Mikkelsen tomasnorre

🐘
View GitHub Profile
@tomasnorre
tomasnorre / 01_Problem.md
Last active January 31, 2024 08:46
Symfony - controller.service_arguments

I'm like 6 hours old in working with symfony, and I really love the documentation, but this one bit I don't get what I'm doing wrong.

When calling my url: /game/complete?personId=1&exerciseId=2 i get the error:

Could not resolve argument $personId of "App\Controller\GameController::complete()", maybe you forgot to register the controller as a service or missed tagging it with the "controller.service_arguments"?

Problem Solved: I was missing the params in my routing annotation, see updated file.

I got the same yesterday with Intellij and it took me quite long to fix it. This worked worked for me (You need to adapt the paths to Webstorm):
```
rm -rf ~/Library/Application\ Support/JetBrains/IntelliJIdea2020.1/plugins/*
rm -rf ~/Library/Application\ Support/JetBrains/IntelliJIdea2020.1/disabled_plugins.txt
```
I found it here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360007952039-Android-support-in-IDEA-2020-1-Ultimate-is-gone-
@tomasnorre
tomasnorre / crawler-devbox.yml
Created April 10, 2020 15:12
Site Configuration TYPO3 9LTS
base: 'https://crawler-typo3v9.ddev.site/'
baseVariants: { }
errorHandling: { }
languages:
-
title: Default
enabled: true
base: /
typo3Language: default
locale: en_US.UTF-8
{
"name": "tnm/typo3v10-test",
"type": "project",
"description": "",
"require": {
"typo3/minimal": "^10.2",
"typo3/cms-introduction": "~4.0",
"typo3/cms-tstemplate": "^10.2",
"typo3/cms-info": "^10.2",
"typo3/cms-belog": "^10.2",
{
"servers": [
{
"id": "Shanghai_VPN",
"url": "127.0.0.1",
"desc": "hi there"
},
{
"id": "Beijing_VPN",
"url": "127.0.0.2",
[
{
"id": "1",
"repository": {
"id": 1296269,
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
"name": "Hello-World",
"full_name": "octocat/Hello-World",
"owner": {
"login": "octocat",
<?php
namespace Aoe\AoeDbSequenzer\Xclass;
use Aoe\AoeDbSequenzer\Sequenzer;
use Aoe\AoeDbSequenzer\Service\Typo3Service;
use TYPO3\CMS\Core\Database\Query\QueryBuilder as CoreQueryBuilder;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* @package Aoe\AoeDbSequenzer\Xclass
@tomasnorre
tomasnorre / README.md
Last active September 26, 2019 15:10

What does it do?

This littel script fetches all packages, listed on packagist with type typo3-cms-extension, and iterates over them and collect download data for every single packages.

It will echo it as csv, so it can easily be parsed into a .csv file for better sorting etc.

How to generate csv file

$ php fetchExtensionDownloadDataFromPackagist.php &gt; downloadData.csv
@tomasnorre
tomasnorre / docker-compose.yaml
Created September 15, 2019 17:02
Docker MySQL in Memory
services:
db:
image: mysql:5.6
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
ports:
- 3306:3306
tmpfs:

Hi.

I’ve a fairly simple functional test.

$this->assertSame(
    5,
    $this->subject->findAll()->count()
);