diff --git a/assets/images/cabecera_index.jpg b/assets/images/cabecera_index.jpg new file mode 100644 index 00000000..e7855947 Binary files /dev/null and b/assets/images/cabecera_index.jpg differ diff --git a/bin/console b/bin/console new file mode 100755 index 00000000..5de0e1c5 --- /dev/null +++ b/bin/console @@ -0,0 +1,42 @@ +#!/usr/bin/env php +getParameterOption(['--env', '-e'], null, true)) { + putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env); +} + +if ($input->hasParameterOption('--no-debug', true)) { + putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0'); +} + +require dirname(__DIR__).'/config/bootstrap.php'; + +if ($_SERVER['APP_DEBUG']) { + umask(0000); + + if (class_exists(Debug::class)) { + Debug::enable(); + } +} + +$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); +$application = new Application($kernel); +$application->run($input); diff --git a/bin/phpunit b/bin/phpunit new file mode 100755 index 00000000..4d1ed05d --- /dev/null +++ b/bin/phpunit @@ -0,0 +1,13 @@ +#!/usr/bin/env php +setVersiculo('2 Crónicas 20:12 (NVI)'); $inicio->setBase('index'); + $base = new MetaBase(); + $base->setBase('index') ; + $base->setLema('Oraciones Audaces'); + $base->setLemaPrincipal('Vení tal como sos'); + $base->setMetaAutor('Diseño Alameda'); + $base->setMetaDescripcion('Jesús, Dios, Igelsia, Amor, Esperanza, Fe, Arte'); + $base->setMetaTitle('Iglesia de la Alameda'); + $base->setMetaType('website'); + $base->setMetaUrl('https://iglesiaalameda.com'); + $base->setSiteName('Iglesia Alameda'); + $manager->persist($inicio); + $manager->persist($base); $manager->flush(); diff --git a/src/DataFixtures/UserFixtures.php b/src/DataFixtures/UserFixtures.php index 5783d762..b607c87a 100644 --- a/src/DataFixtures/UserFixtures.php +++ b/src/DataFixtures/UserFixtures.php @@ -34,7 +34,7 @@ protected function loadData(ObjectManager $manager) $this->createMany(10, 'main_users', function ($i) use ($manager){ $user = new User(); - $user->setEmail(sprintf('alameda%d@example.com', $i)); + $user->setEmail(sprintf('alameda%d@alameda.com', $i)); $user->setPrimerNombre($this->faker->firstName); $user->setPassword($this->userPasswordEncoder->encodePassword( $user, @@ -57,7 +57,7 @@ protected function loadData(ObjectManager $manager) $this->createMany(3, 'admin_users', function ($i){ $user = new User(); - $user->setEmail(sprintf('admin%d@example.com', $i)); + $user->setEmail(sprintf('admin%d@alameda.com', $i)); $user->setPrimerNombre($this->faker->firstName); if ($this->faker->boolean) { $user->setTwitterUsername($this->faker->userName); diff --git a/src/Migrations/Version20200425110656.php b/src/Migrations/Version20200425110656.php deleted file mode 100644 index d7dff40c..00000000 --- a/src/Migrations/Version20200425110656.php +++ /dev/null @@ -1,37 +0,0 @@ -abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); - - $this->addSql('CREATE TABLE page_index (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE index_alameda (id INT AUTO_INCREMENT NOT NULL, lema VARCHAR(255) NOT NULL, lema_principal VARCHAR(255) DEFAULT NULL, lema_sin_espacio VARCHAR(255) NOT NULL, horario1 VARCHAR(5) DEFAULT NULL, horario2 VARCHAR(5) DEFAULT NULL, texto_versiculo VARCHAR(255) DEFAULT NULL, versiculo VARCHAR(255) DEFAULT NULL, meta_descripcion VARCHAR(255) NOT NULL, meta_autor VARCHAR(255) NOT NULL, meta_title VARCHAR(255) NOT NULL, meta_type VARCHAR(255) NOT NULL, meta_url VARCHAR(255) NOT NULL, meta_image VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); - } - - public function down(Schema $schema) : void - { - // this down() migration is auto-generated, please modify it to your needs - $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); - - $this->addSql('DROP TABLE page_index'); - $this->addSql('DROP TABLE index_alameda'); - } -} diff --git a/symfony.lock b/symfony.lock index d8c8e179..d1643d2e 100644 --- a/symfony.lock +++ b/symfony.lock @@ -99,6 +99,12 @@ "jdorn/sql-formatter": { "version": "v1.2.17" }, + "laminas/laminas-code": { + "version": "3.4.1" + }, + "laminas/laminas-eventmanager": { + "version": "3.2.1" + }, "laminas/laminas-zendframework-bridge": { "version": "1.0.3" },