├── .env
├── .gitignore
├── README.md
├── bin
└── console
├── composer.json
├── composer.lock
├── config
├── bootstrap.php
├── bundles.php
├── packages
│ ├── cache.yaml
│ ├── dev
│ │ └── web_profiler.yaml
│ ├── doctrine.yaml
│ ├── doctrine_migrations.yaml
│ ├── framework.yaml
│ ├── prod
│ │ ├── doctrine.yaml
│ │ └── routing.yaml
│ ├── routing.yaml
│ ├── security.yaml
│ ├── test
│ │ ├── framework.yaml
│ │ ├── twig.yaml
│ │ ├── validator.yaml
│ │ └── web_profiler.yaml
│ ├── twig.yaml
│ └── validator.yaml
├── routes.yaml
├── routes
│ ├── annotations.yaml
│ └── dev
│ │ ├── framework.yaml
│ │ └── web_profiler.yaml
└── services.yaml
├── imagens
├── consulta-sql.png
├── debugbar.png
├── delete.png
├── folders.png
├── fomulario-starter.png
├── form-bulma.png
├── formulario-com-imagem.png
├── formulario-novo-bulma.png
├── home-page.png
├── listagem-com-links.png
├── login-basico.png
├── login.png
├── main-page.png
├── novo-post.png
├── php-page.png
├── post-com-categoria.png
├── post-com-imagem.png
├── post-criado.png
├── post.png
├── register.png
├── registration-page.png
├── sql-user.png
├── sql.png
├── symfony-page.png
├── tabela-posts.png
├── tela-com-botao.png
├── upload-feito.png
├── user-logged.png
└── welcome.png
├── public
├── index.php
└── uploads
│ ├── 2638a90dc3f23427a95f9746dcecef00.jpeg
│ ├── 5675847631b3fc0aa72a86fd98c3ff94.jpeg
│ ├── 7e9298891f41b244d863f5b435406675.jpeg
│ └── edc7906065dbc89980459f2e8588194b.jpeg
├── src
├── Controller
│ ├── .gitignore
│ ├── MainController.php
│ ├── PostController.php
│ ├── RegistrationController.php
│ └── SecurityController.php
├── Entity
│ ├── .gitignore
│ ├── Category.php
│ ├── Post.php
│ └── User.php
├── Form
│ └── PostType.php
├── Kernel.php
├── Migrations
│ └── .gitignore
├── Repository
│ ├── .gitignore
│ ├── CategoryRepository.php
│ ├── PostRepository.php
│ └── UserRepository.php
├── Security
│ └── CustomAuthenticator.php
└── Service
│ └── Uploader.php
├── symfony.lock
├── templates
├── base.html.twig
├── home
│ ├── custom.html.twig
│ └── index.html.twig
├── post
│ ├── create.html.twig
│ ├── index.html.twig
│ └── show.html.twig
├── registration
│ └── index.html.twig
└── security
│ └── login.html.twig
└── tutorial
├── ARQUIVOS.md
├── COMPLETO.md
├── CONTROLLER.md
├── DEBUG.md
├── FLASH.md
├── FORMULARIO.md
├── INICIANDO.md
├── INSTALACAO.md
├── ORM.md
├── RELACOES-1.md
├── RELACOES-2.md
├── ROTAS.md
├── SEGURANCA.md
├── SERVICES.md
├── TEMPLATE.md
├── TOQUES.md
└── VIEWS.md
/.env:
--------------------------------------------------------------------------------
1 | # In all environments, the following files are loaded if they exist,
2 | # the latter taking precedence over the former:
3 | #
4 | # * .env contains default values for the environment variables needed by the app
5 | # * .env.local uncommitted file with local overrides
6 | # * .env.$APP_ENV committed environment-specific defaults
7 | # * .env.$APP_ENV.local uncommitted environment-specific overrides
8 | #
9 | # Real environment variables win over .env files.
10 | #
11 | # DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
12 | #
13 | # Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
14 | # https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
15 |
16 | ###> symfony/framework-bundle ###
17 | APP_ENV=dev
18 | APP_SECRET=f5d74f6af36725a1ddf448ec8640369a
19 | #TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
20 | #TRUSTED_HOSTS='^(localhost|example\.com)$'
21 | ###< symfony/framework-bundle ###
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | ###> symfony/framework-bundle ###
3 | /.env.local
4 | /.env.local.php
5 | /.env.*.local
6 | /config/secrets/prod/prod.decrypt.private.php
7 | /public/bundles/
8 | /var/
9 | /vendor/
10 | .idea/*
11 | .idea
12 | ###< symfony/framework-bundle ###
13 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Symfony
2 | 
3 |
4 | ### O que é o Framework Symfony?
5 | Symfony é um framework - conjunto de bibliotecas e ferramentas - em PHP para a criação de aplicações de alta performance e de fácil manutenção. É altamente inspirado pelo projeto Spring da comunidade Java e nasceu inicialmente direcionado à produzir sistemas de qualidade para o mundo enterprise em PHP oferecendo soluções modulares com o máximo de reaproveitamento de código.
6 |
7 | ### Popularidade e Uso
8 |
9 | O Symfony é um framework modular, voltado ao público enterprise e muito eficiente para a criação de microserviços. Todas essas partes de sua natureza combianda torna muito dificil estimar de forma quantitativa quantas empresas usam Symfony, uma vez em que muitos projetos utilizam apenas algumas partes ou serviços e as companhias do ramo de software enterprise não costumam divulgar o que usam para construir seus produtos.
10 |
11 | Porém é facil de dizer que Symfony é um dos frameworks php mais populares devido ao fato da W3CTech medir o Symfony como o terceiro framework mais usado na internet, além disso foi o framework que [mais recebeu contribuições em 2019](https://symfony.com/blog/symfony-was-the-backend-framework-with-the-most-contributors-in-2019).
12 |
13 | ### Empresas que usam Symfony
14 |
15 | #### Spotify
16 | Segundo o site [EtonDigital](https://www.etondigital.com/popular-symfony-projects/) o Spotify usa o Symfony para construir o backend do site e isso foi confirmado por o ex-engenheiro [Mathias Petter Johansen](https://www.quora.com/On-what-language-is-Spotify-built) (porém, ele deixa claro que o Symfony não é usado na aplicação principal/player que tem o backend escrito em Clojure e Java).
17 |
18 | ### Dailymotion
19 | O Dailymotion é completamente construído usando Symfony. Isso inclusive faz parte dos [estudos de caso disponíveis](https://symfony.com/blog/dailymotion-powered-by-symfony) no site do framework. Segundo o Rank Global da Alexa o site é o #207 mais visitado no mundo e o quarto maior volume de mídias da internet.
20 |
21 | ### ( ͡° ͜ʖ ͡°)
22 | Ainda segundo o site [EtonDigital](https://www.etondigital.com/popular-symfony-projects/) e confirmado no Quora e no Fórum Laracasts por funcionários da empresa o **PornHub** é construído com Symfony e o que levou a empresa a migrar o código PHP para Symfony foi justamente o grande número de requisições por dia que exigiram uma arquitetura de sistemas mais robusta para aguentar o tráfego na casa dos bilhões de requisições.
23 |
24 | ## Tutorial
25 | Para mostrar e exemplificar o funcionamento do framework foi elaborado um pequeno tutorial de uma _toy application_ de um microblog de imagens.
26 |
27 | 
28 |
29 | ### Índice
30 |
31 | 1. [Requisitos Minimos/Instalação](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/INSTALACAO.md)
32 | 2. [Iniciando um novo projeto em Symfony](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/INICIANDO.md)
33 | 3. [Ferramenta make e o primeiro Controller](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/CONTROLLER.md)
34 | 4. [Rotas](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/ROTAS.md)
35 | 5. [Views ](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/VIEWS.md)
36 | 6. [Template](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/TEMPLATE.md)
37 | 7. [ORM](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/ORM.md)
38 | 8. [Flash Messages](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/FLASH.md)
39 | 9. [Formulários](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/FORMULARIO.md)
40 | 10. [Debug](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/DEBUG.md)
41 | 11. [Segurança/Autenticação](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/SEGURANCA.md)
42 | 12. [Relação entre tabelas, parte 1](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/RELACOES-1.md)
43 | 13. [Upload de arquivos](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/ARQUIVOS.md)
44 | 14. [Relação entre tabelas, parte 2](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/RELACOES-2.md)
45 | 15. [Services](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/SERVICES.md)
46 | 16. [Toques Finais](https://github.com/Camilotk/symfony-sisint-ifrs/blob/master/tutorial/TOQUES.md)
47 |
48 |
5 |
Meu Blog
6 |
Microblog com minhas imagens e fotos preferidas
7 |
8 |
9 |