Skip to content

Having trouble creating PDO object #195

Open
@garrettw

Description

@garrettw

For a job interview today, I had to try to make a Twitter clone, getting as far as I could in 8 hours. Aside from the fact that I should have chosen Laravel instead of doing it from scratch, and thus I didn't get nearly far enough... I ran into a problem near the end where I couldn't get an instance of PDO going with Dice.

Here's the relevant config:
https://github.com/garrettw/screamer/blob/main/dic-config.php#L39

The problem I was running into was that somehow, the PDO constructor was being sent 5 params: my 3 followed by two NULLs -- so it was complaining that it could only take 4 params. I tried to work around it in a few ways but I didn't get any different outcome.

Can you see anything I might be doing wrong in the config? Or is this an actual bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions