Skip to content

Instantly share code, notes, and snippets.

View marcelomx's full-sized avatar
🏠
Working from home

Marcelo Rodrigues marcelomx

🏠
Working from home
View GitHub Profile
@marcelomx
marcelomx / Dockerfile
Created May 27, 2022 20:32
Oracle Instant Client (Oracle 12)
# LICENSE UPL 1.0
#
# Copyright (c) 2014-2015 Oracle and/or its affiliates. All rights reserved.
#
# ORACLE DOCKERFILES PROJECT
# --------------------------
#
# Dockerfile template for Oracle Instant Client
#
# REQUIRED FILES TO BUILD THIS IMAGE
@marcelomx
marcelomx / UserController.php
Last active September 28, 2021 22:21
Cadastro de usuario simples
<?php
class UserController
{
protected $config;
public function __construct(array $config)
{
$this->config = $config;
@marcelomx
marcelomx / Car.php
Last active July 15, 2021 12:48
Doctrine HasOneThrough relation example (based on Laravel Eloquent HasOneThrough)
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\OneToOne;
@marcelomx
marcelomx / ContainerException.php
Last active August 30, 2021 12:35
Simple micro DI container with PHP
<?php
use Psr\Container\NotFoundExceptionInterface;
class ContainerException extends \Exception implements NotFoundExceptionInterface
{
}