This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM php:fpm-stretch | |
| ENV ACCEPT_EULA=Y | |
| ARG APCU_VERSION=5.1.11 | |
| RUN apt-get update && apt-get install -y gnupg2 locales openssl apt-transport-https ca-certificates \ | |
| && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \ | |
| && locale-gen \ | |
| && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ | |
| && curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| root /var/www/rocket/public; | |
| location / { | |
| try_files $uri /index.php$is_args$args; | |
| } | |
| location ~ ^/index\.php(/|$) { | |
| # Connect to the Docker service using fpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nginx:latest | |
| COPY ./build/nginx/default.conf /etc/nginx/conf.d/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| php: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile-php | |
| args: | |
| - WITH_XDEBUG=false | |
| environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /**************************************************************** | |
| * | |
| * | |
| * 🆕🆕🆕 Nuevas características de Javascript en 2020 | |
| * | |
| * | |
| *****************************************************************/ | |
| /** | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { createContext, useContext, useReducer } from "react"; | |
| import ReactDOM from "react-dom"; | |
| const CounterContext = createContext(); | |
| const reducer = (state, action) => { | |
| switch (action.type) { | |
| case "ADD_TO_COUNTER": { | |
| return { | |
| ...state, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { createContext, useContext } from "react"; | |
| import ReactDOM from "react-dom"; | |
| const CounterContext = createContext({ | |
| counter: 0 | |
| }); | |
| const Display = () => { | |
| const context = useContext(CounterContext); | |
| return <h1>Valor del contador: {context.counter}</h1>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useContext } from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| const Display = ({ counter }) => <h1>Valor del contador: {counter}</h1>; | |
| const Increment = ({ addToCounter }) => ( | |
| <button onClick={() => addToCounter(1)}>Sumar 1</button> | |
| ); | |
| const Decrement = ({ addToCounter }) => ( | |
| <button onClick={() => addToCounter(-1)}>Restar 1</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Model\DTO; | |
| class StripeProcessSubscriptionDTO { | |
| private $planId; | |
| private $stripeToken; | |
| private $stripeTokenType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Tests; | |
| use Symfony\Component\Panther\PantherTestCase; | |
| class BlogPostsControllerTest extends PantherTestCase { | |
| public function testShowPost() { | |
| $client = static::createPantherClient(); | |
| $client->followRedirects(); |