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 | |
| return [ | |
| 'contato' => 'pages/contato.php', | |
| 'home' => 'pages/home.php', | |
| 'empresa' => 'pages/empresa.php', | |
| 'produtos' => 'pages/produtos.php', | |
| 'servicos' => 'pages/servicos.php', | |
| ]; |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. |
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 Cliente; | |
| return array( | |
| 'router' => array( | |
| 'routes' => array( | |
| 'cliente' => array( | |
| 'type' => 'Literal', | |
| 'options' => array( | |
| 'route' => '/cliente', |
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
| #!/usr/bin/env bash | |
| #Variáveis de configuração do projeto | |
| ProjectName="cms" | |
| PathPublic="public" | |
| sudo apt-get update | |
| sudo apt-get install -y python-software-properties | |
| #Pacote PHP 5.5 ou 5.4 |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "hashicorp/precise64" | |
| config.vm.provision :shell, :path => "bootstrap.sh" | |
| config.vm.network :forwarded_port, host: 8080, guest: 80 |
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
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "drupal-debian6" | |
| config.vm.provision :shell, :path => "bootstrap.sh" | |
| config.vm.network :forwarded_port, host: 3307, guest: 3306 | |
| config.vm.network :forwarded_port, host: 27018, guest: 27017 |
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
| #!/usr/bin/env bash | |
| # Atualiza lista de pacotes | |
| sudo apt-get update | |
| # instala o suporte a NFS (sem ele o Vagrant fica uma carroça) | |
| # Notas: | |
| # - para usarmos Vagrant com NFS é necessário que tanto host quanto guest tenham suporte instalado. | |
| # - no host, rode: sudo apt-get install nfs-common nfs-kernel-server portmap (note o nfs-common nfs-kernel-server que o guest não tem) | |
| # - embora tenha colocado o pacote 'portmap', o apt-get instalou o pacote 'rpcbind' em seu lugar. |
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
| public function onBootstrap(EventInterface $e) | |
| { | |
| $e->getApplication()->getServiceManager()->get('translator'); | |
| $eventManager = $e->getApplication()->getEventManager(); | |
| $moduleRouteListener = new ModuleRouteListener(); | |
| $moduleRouteListener->attach($eventManager); | |
| //Parte que faz as traduções | |
| $translator = $e->getApplication()->getServiceManager()->get('translator'); | |
| $translator->addTranslationFile( |
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 HitCursos\V1\Entity; | |
| use HitCursos\V1\Entity\Traits\OAuth; | |
| use HitBase\Entity\AbstractEntity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Zend\Stdlib\Hydrator\Reflection; | |
| /** |
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 HitBase\Fixture\Common; | |
| use HitBase\Entity\Exemplo; | |
| /** | |
| * ExemploData | |
| */ | |
| class ExemploData |