diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4a0f8a6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,29 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true + +# Tab indentation (no size specified) +[Makefile] +indent_style = tab + +[*.{js,css,php,html}] +charset = utf-8 +indent_style = tab +indent_size = 4 + +# Indentation override +[*.{html,js}] +indent_size = 2 + +# Matches the exact files either package.json or .travis.yml +[{package.json,.travis.yml}] +indent_style = space +indent_size = 2 + diff --git a/.env.dist b/.env.dist new file mode 100644 index 0000000..f603dc0 --- /dev/null +++ b/.env.dist @@ -0,0 +1,15 @@ +# This file is a "template" of which env vars need to be defined for your application +# Copy this file to .env file for development, create environment variables when deploying to production +# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration + +###> symfony/framework-bundle ### +APP_ENV=dev +APP_SECRET=bad868cd8c866d03635e6131f3feace6 +###< symfony/framework-bundle ### + +###> doctrine/doctrine-bundle ### +# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url +# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db" +# Configure your db driver and server_version in config/packages/doctrine.yaml +DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name +###< doctrine/doctrine-bundle ### diff --git a/.gitignore b/.gitignore index 2a3be65..a0dbcb0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,7 @@ -/.web-server-pid -/app/config/parameters.yml -/build/ -/phpunit.xml -/var/* -!/var/cache -/var/cache/* -!var/cache/.gitkeep -!/var/logs -/var/logs/* -!var/logs/.gitkeep -!/var/sessions -/var/sessions/* -!var/sessions/.gitkeep -!var/SymfonyRequirements.php + +###> symfony/framework-bundle ### +.env +/public/bundles/ +/var/ /vendor/ -/web/bundles/ -/**/*.php~ \ No newline at end of file +###< symfony/framework-bundle ### diff --git a/app/.htaccess b/app/.htaccess deleted file mode 100644 index fb1de45..0000000 --- a/app/.htaccess +++ /dev/null @@ -1,7 +0,0 @@ - - Require all denied - - - Order deny,allow - Deny from all - diff --git a/app/AppCache.php b/app/AppCache.php deleted file mode 100644 index 639ec2c..0000000 --- a/app/AppCache.php +++ /dev/null @@ -1,7 +0,0 @@ -getEnvironment(), ['dev', 'test'], true)) { - $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); - $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); - $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); - - if ('dev' === $this->getEnvironment()) { - $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); - //$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle(); - } - } - - return $bundles; - } - - public function getRootDir() - { - return __DIR__; - } - - public function getCacheDir() - { - return dirname(__DIR__).'/var/cache/'.$this->getEnvironment(); - } - - public function getLogDir() - { - return dirname(__DIR__).'/var/logs'; - } - - public function registerContainerConfiguration(LoaderInterface $loader) - { - $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); - } -} diff --git a/app/config/config.yml b/app/config/config.yml deleted file mode 100644 index eb36de8..0000000 --- a/app/config/config.yml +++ /dev/null @@ -1,69 +0,0 @@ -imports: - - { resource: parameters.yml } - - { resource: security.yml } - - { resource: services.yml } - -# Put parameters here that don't need to change on each machine where the app is deployed -# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration -parameters: - locale: en - -framework: - #esi: ~ - #translator: { fallbacks: ['%locale%'] } - secret: '%secret%' - router: - resource: '%kernel.project_dir%/app/config/routing.yml' - strict_requirements: ~ - form: ~ - csrf_protection: ~ - validation: { enable_annotations: true } - #serializer: { enable_annotations: true } - templating: - engines: ['twig'] - default_locale: '%locale%' - trusted_hosts: ~ - session: - # https://symfony.com/doc/current/reference/configuration/framework.html#handler-id - handler_id: session.handler.native_file - save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%' - fragments: ~ - http_method_override: true - assets: ~ - php_errors: - log: true - -# Twig Configuration -twig: - debug: '%kernel.debug%' - form_themes: - - 'foundation_5_layout.html.twig' - strict_variables: '%kernel.debug%' - -# Doctrine Configuration -doctrine: - dbal: - driver: pdo_pgsql - host: '%database_host%' - port: '%database_port%' - dbname: '%database_name%' - user: '%database_user%' - password: '%database_password%' - charset: UTF8 - # if using pdo_sqlite as your database driver: - # 1. add the path in parameters.yml - # e.g. database_path: '%kernel.project_dir%/var/data/data.sqlite' - # 2. Uncomment database_path in parameters.yml.dist - # 3. Uncomment next line: - # path: '%database_path%' - types: - money: CameraBundle\Types\MoneyType - mapping_types: - bit: boolean - money: money - - orm: - auto_generate_proxy_classes: '%kernel.debug%' - naming_strategy: doctrine.orm.naming_strategy.underscore - auto_mapping: true - diff --git a/app/config/config_dev.yml b/app/config/config_dev.yml deleted file mode 100644 index 3a43646..0000000 --- a/app/config/config_dev.yml +++ /dev/null @@ -1,41 +0,0 @@ -imports: - - { resource: config.yml } - -framework: - router: - resource: '%kernel.project_dir%/app/config/routing_dev.yml' - strict_requirements: true - profiler: { only_exceptions: false } - -web_profiler: - toolbar: true - intercept_redirects: false - -monolog: - handlers: - main: - type: stream - path: '%kernel.logs_dir%/%kernel.environment%.log' - level: debug - channels: ['!event'] - console: - type: console - process_psr_3_messages: false - channels: ['!event', '!doctrine', '!console'] - # To follow logs in real time, execute the following command: - # `bin/console server:log -vv` - server_log: - type: server_log - process_psr_3_messages: false - host: 127.0.0.1:9911 - # uncomment to get logging in your browser - # you may have to allow bigger header sizes in your Web server configuration - #firephp: - # type: firephp - # level: info - #chromephp: - # type: chromephp - # level: info - -#swiftmailer: -# delivery_addresses: ['me@example.com'] diff --git a/app/config/config_test.yml b/app/config/config_test.yml deleted file mode 100644 index 2f6d925..0000000 --- a/app/config/config_test.yml +++ /dev/null @@ -1,16 +0,0 @@ -imports: - - { resource: config_dev.yml } - -framework: - test: ~ - session: - storage_id: session.storage.mock_file - profiler: - collect: false - -web_profiler: - toolbar: false - intercept_redirects: false - -swiftmailer: - disable_delivery: true diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist deleted file mode 100644 index 2c20ddc..0000000 --- a/app/config/parameters.yml.dist +++ /dev/null @@ -1,19 +0,0 @@ -# This file is a "template" of what your parameters.yml file should look like -# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production. -# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration -parameters: - database_host: 127.0.0.1 - database_port: ~ - database_name: symfony - database_user: root - database_password: ~ - # You should uncomment this if you want to use pdo_sqlite - #database_path: '%kernel.project_dir%/var/data/data.sqlite' - - mailer_transport: smtp - mailer_host: 127.0.0.1 - mailer_user: ~ - mailer_password: ~ - - # A secret key that's used to generate certain security-related tokens - secret: ThisTokenIsNotSoSecretChangeIt diff --git a/app/config/routing_dev.yml b/app/config/routing_dev.yml deleted file mode 100644 index 20602eb..0000000 --- a/app/config/routing_dev.yml +++ /dev/null @@ -1,14 +0,0 @@ -_wdt: - resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml' - prefix: /_wdt - -_profiler: - resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml' - prefix: /_profiler - -_errors: - resource: '@TwigBundle/Resources/config/routing/errors.xml' - prefix: /_error - -_main: - resource: routing.yml diff --git a/app/config/security.yml b/app/config/security.yml deleted file mode 100644 index 0e0b7cb..0000000 --- a/app/config/security.yml +++ /dev/null @@ -1,24 +0,0 @@ -# To get started with security, check out the documentation: -# https://symfony.com/doc/current/security.html -security: - - # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded - providers: - in_memory: - memory: ~ - - firewalls: - # disables authentication for assets and the profiler, adapt it according to your needs - dev: - pattern: ^/(_(profiler|wdt)|css|images|js)/ - security: false - - main: - anonymous: ~ - # activate different ways to authenticate - - # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate - #http_basic: ~ - - # https://symfony.com/doc/current/security/form_login_setup.html - #form_login: ~ diff --git a/bin/console b/bin/console index 0629023..bc672cc 100755 --- a/bin/console +++ b/bin/console @@ -1,27 +1,39 @@ #!/usr/bin/env php getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev'); -$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(['--no-debug', '']) && $env !== 'prod'; - -if ($debug) { - Debug::enable(); +if (!class_exists(Application::class)) { + throw new \RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.'); } -$kernel = new AppKernel($env, $debug); +if (!isset($_SERVER['APP_ENV'])) { + if (!class_exists(Dotenv::class)) { + throw new \RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file.'); + } + (new Dotenv())->load(__DIR__.'/../.env'); +} + +$input = new ArgvInput(); +$env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev'); +$debug = ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption(['--no-debug', '']); + +if ($debug) { + umask(0000); + + if (class_exists(Debug::class)) { + Debug::enable(); + } +} + +$kernel = new Kernel($env, $debug); $application = new Application($kernel); $application->run($input); diff --git a/bin/symfony_requirements b/bin/symfony_requirements deleted file mode 100755 index a7bf65a..0000000 --- a/bin/symfony_requirements +++ /dev/null @@ -1,146 +0,0 @@ -#!/usr/bin/env php -getPhpIniConfigPath(); - -echo_title('Symfony Requirements Checker'); - -echo '> PHP is using the following php.ini file:'.PHP_EOL; -if ($iniPath) { - echo_style('green', ' '.$iniPath); -} else { - echo_style('yellow', ' WARNING: No configuration file (php.ini) used by PHP!'); -} - -echo PHP_EOL.PHP_EOL; - -echo '> Checking Symfony requirements:'.PHP_EOL.' '; - -$messages = array(); -foreach ($symfonyRequirements->getRequirements() as $req) { - if ($helpText = get_error_message($req, $lineSize)) { - echo_style('red', 'E'); - $messages['error'][] = $helpText; - } else { - echo_style('green', '.'); - } -} - -$checkPassed = empty($messages['error']); - -foreach ($symfonyRequirements->getRecommendations() as $req) { - if ($helpText = get_error_message($req, $lineSize)) { - echo_style('yellow', 'W'); - $messages['warning'][] = $helpText; - } else { - echo_style('green', '.'); - } -} - -if ($checkPassed) { - echo_block('success', 'OK', 'Your system is ready to run Symfony projects'); -} else { - echo_block('error', 'ERROR', 'Your system is not ready to run Symfony projects'); - - echo_title('Fix the following mandatory requirements', 'red'); - - foreach ($messages['error'] as $helpText) { - echo ' * '.$helpText.PHP_EOL; - } -} - -if (!empty($messages['warning'])) { - echo_title('Optional recommendations to improve your setup', 'yellow'); - - foreach ($messages['warning'] as $helpText) { - echo ' * '.$helpText.PHP_EOL; - } -} - -echo PHP_EOL; -echo_style('title', 'Note'); -echo ' The command console could use a different php.ini file'.PHP_EOL; -echo_style('title', '~~~~'); -echo ' than the one used with your web server. To be on the'.PHP_EOL; -echo ' safe side, please check the requirements from your web'.PHP_EOL; -echo ' server using the '; -echo_style('yellow', 'web/config.php'); -echo ' script.'.PHP_EOL; -echo PHP_EOL; - -exit($checkPassed ? 0 : 1); - -function get_error_message(Requirement $requirement, $lineSize) -{ - if ($requirement->isFulfilled()) { - return; - } - - $errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL; - $errorMessage .= ' > '.wordwrap($requirement->getHelpText(), $lineSize - 5, PHP_EOL.' > ').PHP_EOL; - - return $errorMessage; -} - -function echo_title($title, $style = null) -{ - $style = $style ?: 'title'; - - echo PHP_EOL; - echo_style($style, $title.PHP_EOL); - echo_style($style, str_repeat('~', strlen($title)).PHP_EOL); - echo PHP_EOL; -} - -function echo_style($style, $message) -{ - // ANSI color codes - $styles = array( - 'reset' => "\033[0m", - 'red' => "\033[31m", - 'green' => "\033[32m", - 'yellow' => "\033[33m", - 'error' => "\033[37;41m", - 'success' => "\033[37;42m", - 'title' => "\033[34m", - ); - $supports = has_color_support(); - - echo($supports ? $styles[$style] : '').$message.($supports ? $styles['reset'] : ''); -} - -function echo_block($style, $title, $message) -{ - $message = ' '.trim($message).' '; - $width = strlen($message); - - echo PHP_EOL.PHP_EOL; - - echo_style($style, str_repeat(' ', $width)); - echo PHP_EOL; - echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT)); - echo PHP_EOL; - echo_style($style, $message); - echo PHP_EOL; - echo_style($style, str_repeat(' ', $width)); - echo PHP_EOL; -} - -function has_color_support() -{ - static $support; - - if (null === $support) { - if (DIRECTORY_SEPARATOR == '\\') { - $support = false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI'); - } else { - $support = function_exists('posix_isatty') && @posix_isatty(STDOUT); - } - } - - return $support; -} diff --git a/composer.json b/composer.json index d067c54..574198b 100644 --- a/composer.json +++ b/composer.json @@ -1,69 +1,60 @@ { - "name": "aviat/camera_crud", - "license": "MIT", "type": "project", - "description": "Admin CRUD for managing camera collection", - "autoload": { - "psr-4": { - "CameraBundle\\": "src/CameraBundle" - }, - "classmap": [ "app/AppKernel.php", "app/AppCache.php" ] - }, - "autoload-dev": { - "psr-4": { "Tests\\": "tests/" }, - "files": [ "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php" ] - }, + "license": "proprietary", "require": { - "php": ">=7.1.0", + "php": "^7.0.8", "doctrine/doctrine-bundle": "^1.6", "doctrine/orm": "^2.5", - "incenteev/composer-parameter-handler": "^2.0", - "sensio/distribution-bundle": "^5.0.19", "sensio/framework-extra-bundle": "^3.0.2", + "symfony/console": "^3.3", + "symfony/form": "^4.0", + "symfony/framework-bundle": "^3.3 || ^4.0", "symfony/monolog-bundle": "^3.1.0", - "symfony/polyfill-apcu": "^1.0", - "symfony/swiftmailer-bundle": "^2.3.10", - "symfony/symfony": "3.3.*", - "twig/twig": "^1.0||^2.0" + "symfony/twig-bundle": "^4.0", + "symfony/yaml": "^3.3", + "twig/twig": "^2.0 || ^3.0" }, "require-dev": { - "sensio/generator-bundle": "^3.0", - "symfony/phpunit-bridge": "^3.0" - }, - "scripts": { - "symfony-scripts": [ - "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget" - ], - "post-install-cmd": [ - "@symfony-scripts" - ], - "post-update-cmd": [ - "@symfony-scripts" - ] + "symfony/flex": "^1.0", + "symfony/dotenv": "^3.3" }, "config": { - "platform": { - "php": "7.1.0" + "preferred-install": { + "*": "dist" }, "sort-packages": true }, - "extra": { - "symfony-app-dir": "app", - "symfony-bin-dir": "bin", - "symfony-var-dir": "var", - "symfony-web-dir": "web", - "symfony-tests-dir": "tests", - "symfony-assets-install": "relative", - "incenteev-parameters": { - "file": "app/config/parameters.yml" + "autoload": { + "psr-4": { + "CameraBundle\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "CameraBundle\\Tests\\": "tests/" + } + }, + "scripts": { + "auto-scripts": { + "cache:clear": "symfony-cmd", + "assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd" }, - "branch-alias": { - "dev-master": "3.3-dev" + "post-install-cmd": [ + "@auto-scripts" + ], + "post-update-cmd": [ + "@auto-scripts" + ] + }, + "conflict": { + "symfony/symfony": "*", + "symfony/twig-bundle": "<3.3", + "symfony/debug": "<3.3" + }, + "extra": { + "symfony": { + "id": "01C06XCKJ8KKPKS0GJESWVPJFC", + "allow-contrib": false } } } diff --git a/composer.lock b/composer.lock index fb98510..87d6261 100644 --- a/composer.lock +++ b/composer.lock @@ -4,98 +4,39 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "02e9de2fc57c114e688762f62a640d90", + "content-hash": "83f52db1a8f9ff36b790a422b9fd4f97", "packages": [ - { - "name": "composer/ca-bundle", - "version": "1.0.8", - "source": { - "type": "git", - "url": "https://github.com/composer/ca-bundle.git", - "reference": "9dd73a03951357922d8aee6cc084500de93e2343" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/9dd73a03951357922d8aee6cc084500de93e2343", - "reference": "9dd73a03951357922d8aee6cc084500de93e2343", - "shasum": "" - }, - "require": { - "ext-openssl": "*", - "ext-pcre": "*", - "php": "^5.3.2 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.5", - "psr/log": "^1.0", - "symfony/process": "^2.5 || ^3.0" - }, - "suggest": { - "symfony/process": "This is necessary to reliably check whether openssl_x509_parse is vulnerable on older php versions, but can be ignored on PHP 5.5.6+" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Composer\\CaBundle\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" - } - ], - "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", - "keywords": [ - "cabundle", - "cacert", - "certificate", - "ssl", - "tls" - ], - "time": "2017-09-11T07:24:36+00:00" - }, { "name": "doctrine/annotations", - "version": "v1.2.7", + "version": "v1.5.0", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535" + "reference": "5beebb01b025c94e93686b7a0ed3edae81fe3e7f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/f25c8aab83e0c3e976fd7d19875f198ccf2f7535", - "reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/5beebb01b025c94e93686b7a0ed3edae81fe3e7f", + "reference": "5beebb01b025c94e93686b7a0ed3edae81fe3e7f", "shasum": "" }, "require": { "doctrine/lexer": "1.*", - "php": ">=5.3.2" + "php": "^7.1" }, "require-dev": { "doctrine/cache": "1.*", - "phpunit/phpunit": "4.*" + "phpunit/phpunit": "^5.7" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "1.5.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Annotations\\": "lib/" + "psr-4": { + "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" } }, "notification-url": "https://packagist.org/downloads/", @@ -131,37 +72,41 @@ "docblock", "parser" ], - "time": "2015-08-31T12:32:49+00:00" + "time": "2017-07-22T10:58:02+00:00" }, { "name": "doctrine/cache", - "version": "v1.6.2", + "version": "v1.7.1", "source": { "type": "git", "url": "https://github.com/doctrine/cache.git", - "reference": "eb152c5100571c7a45470ff2a35095ab3f3b900b" + "reference": "b3217d58609e9c8e661cd41357a54d926c4a2a1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/eb152c5100571c7a45470ff2a35095ab3f3b900b", - "reference": "eb152c5100571c7a45470ff2a35095ab3f3b900b", + "url": "https://api.github.com/repos/doctrine/cache/zipball/b3217d58609e9c8e661cd41357a54d926c4a2a1a", + "reference": "b3217d58609e9c8e661cd41357a54d926c4a2a1a", "shasum": "" }, "require": { - "php": "~5.5|~7.0" + "php": "~7.1" }, "conflict": { "doctrine/common": ">2.2,<2.4" }, "require-dev": { - "phpunit/phpunit": "~4.8|~5.0", - "predis/predis": "~1.0", - "satooshi/php-coveralls": "~0.6" + "alcaeus/mongo-php-adapter": "^1.1", + "mongodb/mongodb": "^1.1", + "phpunit/phpunit": "^5.7", + "predis/predis": "~1.0" + }, + "suggest": { + "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-master": "1.7.x-dev" } }, "autoload": { @@ -201,32 +146,33 @@ "cache", "caching" ], - "time": "2017-07-22T12:49:21+00:00" + "time": "2017-08-25T07:02:50+00:00" }, { "name": "doctrine/collections", - "version": "v1.3.0", + "version": "v1.5.0", "source": { "type": "git", "url": "https://github.com/doctrine/collections.git", - "reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a" + "reference": "a01ee38fcd999f34d9bfbcee59dbda5105449cbf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/collections/zipball/6c1e4eef75f310ea1b3e30945e9f06e652128b8a", - "reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a", + "url": "https://api.github.com/repos/doctrine/collections/zipball/a01ee38fcd999f34d9bfbcee59dbda5105449cbf", + "reference": "a01ee38fcd999f34d9bfbcee59dbda5105449cbf", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "doctrine/coding-standard": "~0.1@dev", + "phpunit/phpunit": "^5.7" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2.x-dev" + "dev-master": "1.3.x-dev" } }, "autoload": { @@ -267,20 +213,20 @@ "collections", "iterator" ], - "time": "2015-04-14T22:21:58+00:00" + "time": "2017-07-22T10:37:32+00:00" }, { "name": "doctrine/common", - "version": "v2.6.2", + "version": "v2.8.1", "source": { "type": "git", "url": "https://github.com/doctrine/common.git", - "reference": "7bce00698899aa2c06fe7365c76e4d78ddb15fa3" + "reference": "f68c297ce6455e8fd794aa8ffaf9fa458f6ade66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/common/zipball/7bce00698899aa2c06fe7365c76e4d78ddb15fa3", - "reference": "7bce00698899aa2c06fe7365c76e4d78ddb15fa3", + "url": "https://api.github.com/repos/doctrine/common/zipball/f68c297ce6455e8fd794aa8ffaf9fa458f6ade66", + "reference": "f68c297ce6455e8fd794aa8ffaf9fa458f6ade66", "shasum": "" }, "require": { @@ -289,15 +235,15 @@ "doctrine/collections": "1.*", "doctrine/inflector": "1.*", "doctrine/lexer": "1.*", - "php": "~5.5|~7.0" + "php": "~7.1" }, "require-dev": { - "phpunit/phpunit": "~4.8|~5.0" + "phpunit/phpunit": "^5.7" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7.x-dev" + "dev-master": "2.8.x-dev" } }, "autoload": { @@ -340,28 +286,30 @@ "persistence", "spl" ], - "time": "2016-11-30T16:50:46+00:00" + "time": "2017-08-31T08:43:38+00:00" }, { "name": "doctrine/dbal", - "version": "v2.5.13", + "version": "v2.6.3", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "729340d8d1eec8f01bff708e12e449a3415af873" + "reference": "e3eed9b1facbb0ced3a0995244843a189e7d1b13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/729340d8d1eec8f01bff708e12e449a3415af873", - "reference": "729340d8d1eec8f01bff708e12e449a3415af873", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/e3eed9b1facbb0ced3a0995244843a189e7d1b13", + "reference": "e3eed9b1facbb0ced3a0995244843a189e7d1b13", "shasum": "" }, "require": { - "doctrine/common": ">=2.4,<2.8-dev", - "php": ">=5.3.2" + "doctrine/common": "^2.7.1", + "ext-pdo": "*", + "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "4.*", + "phpunit/phpunit": "^5.4.6", + "phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5", "symfony/console": "2.*||^3.0" }, "suggest": { @@ -373,7 +321,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.5.x-dev" + "dev-master": "2.6.x-dev" } }, "autoload": { @@ -411,41 +359,45 @@ "persistence", "queryobject" ], - "time": "2017-07-22T20:44:48+00:00" + "time": "2017-11-19T13:38:54+00:00" }, { "name": "doctrine/doctrine-bundle", - "version": "1.6.13", + "version": "1.8.1", "source": { "type": "git", "url": "https://github.com/doctrine/DoctrineBundle.git", - "reference": "8cd4c2921b6cef14a78d98cd3f0fb81ba6a976f9" + "reference": "eb6e4fb904a459be28872765ab6e2d246aac7c87" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/8cd4c2921b6cef14a78d98cd3f0fb81ba6a976f9", - "reference": "8cd4c2921b6cef14a78d98cd3f0fb81ba6a976f9", + "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/eb6e4fb904a459be28872765ab6e2d246aac7c87", + "reference": "eb6e4fb904a459be28872765ab6e2d246aac7c87", "shasum": "" }, "require": { - "doctrine/dbal": "~2.3", + "doctrine/dbal": "^2.5.12", "doctrine/doctrine-cache-bundle": "~1.2", - "jdorn/sql-formatter": "~1.1", - "php": ">=5.5.9", + "jdorn/sql-formatter": "^1.2.16", + "php": "^5.5.9|^7.0", "symfony/console": "~2.7|~3.0|~4.0", "symfony/dependency-injection": "~2.7|~3.0|~4.0", "symfony/doctrine-bridge": "~2.7|~3.0|~4.0", "symfony/framework-bundle": "~2.7|~3.0|~4.0" }, + "conflict": { + "symfony/http-foundation": "<2.6" + }, "require-dev": { "doctrine/orm": "~2.3", - "phpunit/phpunit": "~4", + "phpunit/phpunit": "^4.8.36|^5.7|^6.4", "satooshi/php-coveralls": "^1.0", "symfony/phpunit-bridge": "~2.7|~3.0|~4.0", "symfony/property-info": "~2.8|~3.0|~4.0", "symfony/validator": "~2.7|~3.0|~4.0", + "symfony/web-profiler-bundle": "~2.7|~3.0|~4.0", "symfony/yaml": "~2.7|~3.0|~4.0", - "twig/twig": "~1.12|~2.0" + "twig/twig": "~1.26|~2.0" }, "suggest": { "doctrine/orm": "The Doctrine ORM integration is optional in the bundle.", @@ -454,7 +406,7 @@ "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-master": "1.8.x-dev" } }, "autoload": { @@ -492,7 +444,7 @@ "orm", "persistence" ], - "time": "2017-10-11T19:48:03+00:00" + "time": "2017-11-24T13:09:19+00:00" }, { "name": "doctrine/doctrine-cache-bundle", @@ -584,33 +536,33 @@ }, { "name": "doctrine/inflector", - "version": "v1.1.0", + "version": "v1.2.0", "source": { "type": "git", "url": "https://github.com/doctrine/inflector.git", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" + "reference": "e11d84c6e018beedd929cff5220969a3c6d1d462" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/e11d84c6e018beedd929cff5220969a3c6d1d462", + "reference": "e11d84c6e018beedd929cff5220969a3c6d1d462", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": "^7.0" }, "require-dev": { - "phpunit/phpunit": "4.*" + "phpunit/phpunit": "^6.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Inflector\\": "lib/" + "psr-4": { + "Doctrine\\Common\\Inflector\\": "lib/Doctrine/Common/Inflector" } }, "notification-url": "https://packagist.org/downloads/", @@ -647,36 +599,36 @@ "singularize", "string" ], - "time": "2015-11-06T14:35:42+00:00" + "time": "2017-07-22T12:18:28+00:00" }, { "name": "doctrine/instantiator", - "version": "1.0.5", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", + "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", "shasum": "" }, "require": { - "php": ">=5.3,<8.0-DEV" + "php": "^7.1" }, "require-dev": { "athletic/athletic": "~0.1.8", "ext-pdo": "*", "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" + "phpunit/phpunit": "^6.2.3", + "squizlabs/php_codesniffer": "^3.0.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { @@ -701,7 +653,7 @@ "constructor", "instantiate" ], - "time": "2015-06-14T21:17:01+00:00" + "time": "2017-07-22T11:58:36+00:00" }, { "name": "doctrine/lexer", @@ -759,16 +711,16 @@ }, { "name": "doctrine/orm", - "version": "v2.5.12", + "version": "v2.5.13", "source": { "type": "git", "url": "https://github.com/doctrine/doctrine2.git", - "reference": "984535cadc609e9eef8c89414aa3568ee97aa79f" + "reference": "93103f44a3e36e7b48165b6e6b736833f33b18ef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/984535cadc609e9eef8c89414aa3568ee97aa79f", - "reference": "984535cadc609e9eef8c89414aa3568ee97aa79f", + "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/93103f44a3e36e7b48165b6e6b736833f33b18ef", + "reference": "93103f44a3e36e7b48165b6e6b736833f33b18ef", "shasum": "" }, "require": { @@ -831,112 +783,7 @@ "database", "orm" ], - "time": "2017-10-23T18:21:04+00:00" - }, - { - "name": "fig/link-util", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/link-util.git", - "reference": "1a07821801a148be4add11ab0603e4af55a72fac" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/link-util/zipball/1a07821801a148be4add11ab0603e4af55a72fac", - "reference": "1a07821801a148be4add11ab0603e4af55a72fac", - "shasum": "" - }, - "require": { - "php": ">=5.5.0", - "psr/link": "~1.0@dev" - }, - "require-dev": { - "phpunit/phpunit": "^5.1", - "squizlabs/php_codesniffer": "^2.3.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Fig\\Link\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common utility implementations for HTTP links", - "keywords": [ - "http", - "http-link", - "link", - "psr", - "psr-13", - "rest" - ], - "time": "2016-10-17T18:31:11+00:00" - }, - { - "name": "incenteev/composer-parameter-handler", - "version": "v2.1.2", - "source": { - "type": "git", - "url": "https://github.com/Incenteev/ParameterHandler.git", - "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Incenteev/ParameterHandler/zipball/d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", - "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "symfony/yaml": "~2.3|~3.0" - }, - "require-dev": { - "composer/composer": "1.0.*@dev", - "phpspec/prophecy-phpunit": "~1.0", - "symfony/filesystem": "~2.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Incenteev\\ParameterHandler\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christophe Coevoet", - "email": "stof@notk.org" - } - ], - "description": "Composer script handling your ignored parameter file", - "homepage": "https://github.com/Incenteev/ParameterHandler", - "keywords": [ - "parameters management" - ], - "time": "2015-11-10T17:04:01+00:00" + "time": "2017-11-27T23:25:55+00:00" }, { "name": "jdorn/sql-formatter", @@ -1066,54 +913,6 @@ ], "time": "2017-06-19T01:22:40+00:00" }, - { - "name": "paragonie/random_compat", - "version": "v2.0.11", - "source": { - "type": "git", - "url": "https://github.com/paragonie/random_compat.git", - "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/5da4d3c796c275c55f057af5a643ae297d96b4d8", - "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8", - "shasum": "" - }, - "require": { - "php": ">=5.2.0" - }, - "require-dev": { - "phpunit/phpunit": "4.*|5.*" - }, - "suggest": { - "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." - }, - "type": "library", - "autoload": { - "files": [ - "lib/random.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com" - } - ], - "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", - "keywords": [ - "csprng", - "pseudorandom", - "random" - ], - "time": "2017-09-27T21:40:39+00:00" - }, { "name": "psr/cache", "version": "1.0.1", @@ -1209,55 +1008,6 @@ ], "time": "2017-02-14T16:28:37+00:00" }, - { - "name": "psr/link", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/link.git", - "reference": "eea8e8662d5cd3ae4517c9b864493f59fca95562" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/link/zipball/eea8e8662d5cd3ae4517c9b864493f59fca95562", - "reference": "eea8e8662d5cd3ae4517c9b864493f59fca95562", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Link\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interfaces for HTTP links", - "keywords": [ - "http", - "http-link", - "link", - "psr", - "psr-13", - "rest" - ], - "time": "2016-10-28T16:06:13+00:00" - }, { "name": "psr/log", "version": "1.0.2", @@ -1353,58 +1103,6 @@ ], "time": "2017-01-02T13:31:39+00:00" }, - { - "name": "sensio/distribution-bundle", - "version": "v5.0.21", - "source": { - "type": "git", - "url": "https://github.com/sensiolabs/SensioDistributionBundle.git", - "reference": "eb6266b3b472e4002538610b28a0a04bcf94891a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/eb6266b3b472e4002538610b28a0a04bcf94891a", - "reference": "eb6266b3b472e4002538610b28a0a04bcf94891a", - "shasum": "" - }, - "require": { - "php": ">=5.3.9", - "sensiolabs/security-checker": "~3.0|~4.0", - "symfony/class-loader": "~2.3|~3.0", - "symfony/config": "~2.3|~3.0", - "symfony/dependency-injection": "~2.3|~3.0", - "symfony/filesystem": "~2.3|~3.0", - "symfony/http-kernel": "~2.3|~3.0", - "symfony/process": "~2.3|~3.0" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "5.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Sensio\\Bundle\\DistributionBundle\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "Base bundle for Symfony Distributions", - "keywords": [ - "configuration", - "distribution" - ], - "time": "2017-08-25T16:55:44+00:00" - }, { "name": "sensio/framework-extra-bundle", "version": "v3.0.28", @@ -1476,80 +1174,50 @@ "time": "2017-10-12T17:37:20+00:00" }, { - "name": "sensiolabs/security-checker", - "version": "v4.1.6", + "name": "symfony/cache", + "version": "v4.0.0", "source": { "type": "git", - "url": "https://github.com/sensiolabs/security-checker.git", - "reference": "387b6a3b723ba35588b33d5f8d14e28ed608bd30" + "url": "https://github.com/symfony/cache.git", + "reference": "3691cb27e436c55af10ee06de30732623fa2f33e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/security-checker/zipball/387b6a3b723ba35588b33d5f8d14e28ed608bd30", - "reference": "387b6a3b723ba35588b33d5f8d14e28ed608bd30", + "url": "https://api.github.com/repos/symfony/cache/zipball/3691cb27e436c55af10ee06de30732623fa2f33e", + "reference": "3691cb27e436c55af10ee06de30732623fa2f33e", "shasum": "" }, "require": { - "composer/ca-bundle": "^1.0", - "symfony/console": "~2.7|~3.0|~4.0" + "php": "^7.1.3", + "psr/cache": "~1.0", + "psr/log": "~1.0", + "psr/simple-cache": "^1.0" }, - "bin": [ - "security-checker" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.1-dev" - } + "conflict": { + "symfony/var-dumper": "<3.4" }, - "autoload": { - "psr-0": { - "SensioLabs\\Security": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien.potencier@gmail.com" - } - ], - "description": "A security checker for your composer.lock", - "time": "2017-10-29T18:48:08+00:00" - }, - { - "name": "swiftmailer/swiftmailer", - "version": "v5.4.8", - "source": { - "type": "git", - "url": "https://github.com/swiftmailer/swiftmailer.git", - "reference": "9a06dc570a0367850280eefd3f1dc2da45aef517" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/9a06dc570a0367850280eefd3f1dc2da45aef517", - "reference": "9a06dc570a0367850280eefd3f1dc2da45aef517", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" + "provide": { + "psr/cache-implementation": "1.0", + "psr/simple-cache-implementation": "1.0" }, "require-dev": { - "mockery/mockery": "~0.9.1", - "symfony/phpunit-bridge": "~3.2" + "cache/integration-tests": "dev-master", + "doctrine/cache": "~1.6", + "doctrine/dbal": "~2.4", + "predis/predis": "~1.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.4-dev" + "dev-master": "4.0-dev" } }, "autoload": { - "files": [ - "lib/swift_required.php" + "psr-4": { + "Symfony\\Component\\Cache\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -1558,21 +1226,1047 @@ ], "authors": [ { - "name": "Chris Corbyn" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Cache component with PSR-6, PSR-16, and tags", + "homepage": "https://symfony.com", + "keywords": [ + "caching", + "psr6" + ], + "time": "2017-11-20T21:12:12+00:00" + }, + { + "name": "symfony/config", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/config.git", + "reference": "6e6dbc6d2beff8117b974d74274bff02e43c32a6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/config/zipball/6e6dbc6d2beff8117b974d74274bff02e43c32a6", + "reference": "6e6dbc6d2beff8117b974d74274bff02e43c32a6", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/filesystem": "~3.4|~4.0" + }, + "conflict": { + "symfony/finder": "<3.4" + }, + "require-dev": { + "symfony/finder": "~3.4|~4.0", + "symfony/yaml": "~3.4|~4.0" + }, + "suggest": { + "symfony/yaml": "To use the yaml reference dumper" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Config\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ { "name": "Fabien Potencier", "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], - "description": "Swiftmailer, free feature-rich PHP mailer", - "homepage": "http://swiftmailer.org", - "keywords": [ - "email", - "mail", - "mailer" + "description": "Symfony Config Component", + "homepage": "https://symfony.com", + "time": "2017-11-20T18:22:57+00:00" + }, + { + "name": "symfony/console", + "version": "v3.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "9468ad3fba3a5e1f0dc12a96e50e84cddb923cf0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/9468ad3fba3a5e1f0dc12a96e50e84cddb923cf0", + "reference": "9468ad3fba3a5e1f0dc12a96e50e84cddb923cf0", + "shasum": "" + }, + "require": { + "php": "^5.5.9|>=7.0.8", + "symfony/debug": "~2.8|~3.0|~4.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/dependency-injection": "<3.4", + "symfony/process": "<3.3" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "~3.3|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/event-dispatcher": "~2.8|~3.0|~4.0", + "symfony/lock": "~3.4|~4.0", + "symfony/process": "~3.3|~4.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.4-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" ], - "time": "2017-05-01T15:54:03+00:00" + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Console Component", + "homepage": "https://symfony.com", + "time": "2017-11-29T13:28:14+00:00" + }, + { + "name": "symfony/debug", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/debug.git", + "reference": "26a15dab86c3820473716be4f846eac774ad4ad9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/debug/zipball/26a15dab86c3820473716be4f846eac774ad4ad9", + "reference": "26a15dab86c3820473716be4f846eac774ad4ad9", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "psr/log": "~1.0" + }, + "conflict": { + "symfony/http-kernel": "<3.4" + }, + "require-dev": { + "symfony/http-kernel": "~3.4|~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Debug\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Debug Component", + "homepage": "https://symfony.com", + "time": "2017-11-21T09:27:49+00:00" + }, + { + "name": "symfony/dependency-injection", + "version": "v3.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/dependency-injection.git", + "reference": "36777bb762b1367c55d090a7a479876551b98d85" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/36777bb762b1367c55d090a7a479876551b98d85", + "reference": "36777bb762b1367c55d090a7a479876551b98d85", + "shasum": "" + }, + "require": { + "php": "^5.5.9|>=7.0.8", + "psr/container": "^1.0" + }, + "conflict": { + "symfony/config": "<3.3.1", + "symfony/finder": "<3.3", + "symfony/proxy-manager-bridge": "<3.4", + "symfony/yaml": "<3.4" + }, + "provide": { + "psr/container-implementation": "1.0" + }, + "require-dev": { + "symfony/config": "~3.3|~4.0", + "symfony/expression-language": "~2.8|~3.0|~4.0", + "symfony/yaml": "~3.4|~4.0" + }, + "suggest": { + "symfony/config": "", + "symfony/expression-language": "For using expressions in service container configuration", + "symfony/finder": "For using double-star glob patterns or when GLOB_BRACE portability is required", + "symfony/proxy-manager-bridge": "Generate service proxies to lazy load them", + "symfony/yaml": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.4-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\DependencyInjection\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony DependencyInjection Component", + "homepage": "https://symfony.com", + "time": "2017-11-29T16:42:20+00:00" + }, + { + "name": "symfony/doctrine-bridge", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/doctrine-bridge.git", + "reference": "496f1ec1a5d288020f83aebcb70bf0571d92a517" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/496f1ec1a5d288020f83aebcb70bf0571d92a517", + "reference": "496f1ec1a5d288020f83aebcb70bf0571d92a517", + "shasum": "" + }, + "require": { + "doctrine/common": "~2.4", + "php": "^7.1.3", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0", + "symfony/dependency-injection": "<3.4" + }, + "require-dev": { + "doctrine/data-fixtures": "1.0.*", + "doctrine/dbal": "~2.4", + "doctrine/orm": "^2.4.5", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/expression-language": "~3.4|~4.0", + "symfony/form": "~3.4|~4.0", + "symfony/http-kernel": "~3.4|~4.0", + "symfony/property-access": "~3.4|~4.0", + "symfony/property-info": "~3.4|~4.0", + "symfony/proxy-manager-bridge": "~3.4|~4.0", + "symfony/security": "~3.4|~4.0", + "symfony/stopwatch": "~3.4|~4.0", + "symfony/translation": "~3.4|~4.0", + "symfony/validator": "~3.4|~4.0" + }, + "suggest": { + "doctrine/data-fixtures": "", + "doctrine/dbal": "", + "doctrine/orm": "", + "symfony/form": "", + "symfony/property-info": "", + "symfony/validator": "" + }, + "type": "symfony-bridge", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bridge\\Doctrine\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Doctrine Bridge", + "homepage": "https://symfony.com", + "time": "2017-11-07T14:45:01+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "6223fb2b68e7059e8d5843c0103999a84e7275cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/6223fb2b68e7059e8d5843c0103999a84e7275cf", + "reference": "6223fb2b68e7059e8d5843c0103999a84e7275cf", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "conflict": { + "symfony/dependency-injection": "<3.4" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/expression-language": "~3.4|~4.0", + "symfony/stopwatch": "~3.4|~4.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony EventDispatcher Component", + "homepage": "https://symfony.com", + "time": "2017-11-09T17:30:28+00:00" + }, + { + "name": "symfony/filesystem", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "c9d4a26759ff75a077e4e334315cb632739b661a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/c9d4a26759ff75a077e4e334315cb632739b661a", + "reference": "c9d4a26759ff75a077e4e334315cb632739b661a", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Filesystem Component", + "homepage": "https://symfony.com", + "time": "2017-11-21T14:14:53+00:00" + }, + { + "name": "symfony/finder", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "c9cdda4dc4a3182d8d6daeebce4a25fef078ea4c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/c9cdda4dc4a3182d8d6daeebce4a25fef078ea4c", + "reference": "c9cdda4dc4a3182d8d6daeebce4a25fef078ea4c", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Finder Component", + "homepage": "https://symfony.com", + "time": "2017-11-07T14:45:01+00:00" + }, + { + "name": "symfony/form", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/form.git", + "reference": "a08c50c730d22a951ed1e8e8b30ab93d0e9e3c15" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/form/zipball/a08c50c730d22a951ed1e8e8b30ab93d0e9e3c15", + "reference": "a08c50c730d22a951ed1e8e8b30ab93d0e9e3c15", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/event-dispatcher": "~3.4|~4.0", + "symfony/intl": "~3.4|~4.0", + "symfony/options-resolver": "~3.4|~4.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/property-access": "~3.4|~4.0" + }, + "conflict": { + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0", + "symfony/dependency-injection": "<3.4", + "symfony/doctrine-bridge": "<3.4", + "symfony/framework-bundle": "<3.4", + "symfony/http-kernel": "<3.4", + "symfony/twig-bridge": "<3.4" + }, + "require-dev": { + "doctrine/collections": "~1.0", + "symfony/config": "~3.4|~4.0", + "symfony/console": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/http-foundation": "~3.4|~4.0", + "symfony/http-kernel": "~3.4|~4.0", + "symfony/security-csrf": "~3.4|~4.0", + "symfony/translation": "~3.4|~4.0", + "symfony/validator": "~3.4|~4.0", + "symfony/var-dumper": "~3.4-beta3|~4.0-beta3" + }, + "suggest": { + "symfony/framework-bundle": "For templating with PHP.", + "symfony/security-csrf": "For protecting forms against CSRF attacks.", + "symfony/twig-bridge": "For templating with Twig.", + "symfony/validator": "For form validation." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Form\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Form Component", + "homepage": "https://symfony.com", + "time": "2017-11-29T13:42:03+00:00" + }, + { + "name": "symfony/framework-bundle", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/framework-bundle.git", + "reference": "62277d37abf3c451e5b367557a5fde37d3bf058f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/62277d37abf3c451e5b367557a5fde37d3bf058f", + "reference": "62277d37abf3c451e5b367557a5fde37d3bf058f", + "shasum": "" + }, + "require": { + "ext-xml": "*", + "php": "^7.1.3", + "symfony/cache": "~3.4|~4.0", + "symfony/config": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/event-dispatcher": "~3.4-beta4|~4.0-beta4", + "symfony/filesystem": "~3.4|~4.0", + "symfony/finder": "~3.4|~4.0", + "symfony/http-foundation": "~3.4|~4.0", + "symfony/http-kernel": "~3.4|~4.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/routing": "~3.4|~4.0" + }, + "conflict": { + "phpdocumentor/reflection-docblock": "<3.0", + "phpdocumentor/type-resolver": "<0.2.1", + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0", + "symfony/asset": "<3.4", + "symfony/console": "<3.4", + "symfony/form": "<3.4", + "symfony/property-info": "<3.4", + "symfony/serializer": "<3.4", + "symfony/stopwatch": "<3.4", + "symfony/translation": "<3.4", + "symfony/validator": "<3.4", + "symfony/workflow": "<3.4" + }, + "require-dev": { + "doctrine/annotations": "~1.0", + "doctrine/cache": "~1.0", + "fig/link-util": "^1.0", + "phpdocumentor/reflection-docblock": "^3.0|^4.0", + "symfony/asset": "~3.4|~4.0", + "symfony/browser-kit": "~3.4|~4.0", + "symfony/console": "~3.4|~4.0", + "symfony/css-selector": "~3.4|~4.0", + "symfony/dom-crawler": "~3.4|~4.0", + "symfony/expression-language": "~3.4|~4.0", + "symfony/form": "~3.4|~4.0", + "symfony/lock": "~3.4|~4.0", + "symfony/polyfill-intl-icu": "~1.0", + "symfony/process": "~3.4|~4.0", + "symfony/property-info": "~3.4|~4.0", + "symfony/security": "~3.4|~4.0", + "symfony/security-core": "~3.4|~4.0", + "symfony/security-csrf": "~3.4|~4.0", + "symfony/serializer": "~3.4|~4.0", + "symfony/stopwatch": "~3.4|~4.0", + "symfony/templating": "~3.4|~4.0", + "symfony/translation": "~3.4|~4.0", + "symfony/validator": "~3.4|~4.0", + "symfony/var-dumper": "~3.4|~4.0", + "symfony/web-link": "~3.4|~4.0", + "symfony/workflow": "~3.4|~4.0", + "symfony/yaml": "~3.4|~4.0", + "twig/twig": "~1.34|~2.4" + }, + "suggest": { + "ext-apcu": "For best performance of the system caches", + "symfony/console": "For using the console commands", + "symfony/form": "For using forms", + "symfony/property-info": "For using the property_info service", + "symfony/serializer": "For using the serializer service", + "symfony/validator": "For using validation", + "symfony/web-link": "For using web links, features such as preloading, prefetching or prerendering", + "symfony/yaml": "For using the debug:config and lint:yaml commands" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bundle\\FrameworkBundle\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony FrameworkBundle", + "homepage": "https://symfony.com", + "time": "2017-11-29T13:42:03+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "40a9400633675adafbc94302004f9ec04589210f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/40a9400633675adafbc94302004f9ec04589210f", + "reference": "40a9400633675adafbc94302004f9ec04589210f", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/polyfill-mbstring": "~1.1" + }, + "require-dev": { + "symfony/expression-language": "~3.4|~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony HttpFoundation Component", + "homepage": "https://symfony.com", + "time": "2017-11-30T15:11:43+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "3359c489cc03754f0ada3715d080da81cf865779" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/3359c489cc03754f0ada3715d080da81cf865779", + "reference": "3359c489cc03754f0ada3715d080da81cf865779", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "psr/log": "~1.0", + "symfony/debug": "~3.4|~4.0", + "symfony/event-dispatcher": "~3.4|~4.0", + "symfony/http-foundation": "~3.4|~4.0" + }, + "conflict": { + "symfony/config": "<3.4", + "symfony/dependency-injection": "<3.4", + "symfony/var-dumper": "<3.4", + "twig/twig": "<1.34|<2.4,>=2" + }, + "provide": { + "psr/log-implementation": "1.0" + }, + "require-dev": { + "psr/cache": "~1.0", + "symfony/browser-kit": "~3.4|~4.0", + "symfony/config": "~3.4|~4.0", + "symfony/console": "~3.4|~4.0", + "symfony/css-selector": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/dom-crawler": "~3.4|~4.0", + "symfony/expression-language": "~3.4|~4.0", + "symfony/finder": "~3.4|~4.0", + "symfony/process": "~3.4|~4.0", + "symfony/routing": "~3.4|~4.0", + "symfony/stopwatch": "~3.4|~4.0", + "symfony/templating": "~3.4|~4.0", + "symfony/translation": "~3.4|~4.0", + "symfony/var-dumper": "~3.4|~4.0" + }, + "suggest": { + "symfony/browser-kit": "", + "symfony/config": "", + "symfony/console": "", + "symfony/dependency-injection": "", + "symfony/var-dumper": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony HttpKernel Component", + "homepage": "https://symfony.com", + "time": "2017-11-30T17:43:40+00:00" + }, + { + "name": "symfony/inflector", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/inflector.git", + "reference": "8740990f67ec9f89bfa116d11bad2990dd510ece" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/inflector/zipball/8740990f67ec9f89bfa116d11bad2990dd510ece", + "reference": "8740990f67ec9f89bfa116d11bad2990dd510ece", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Inflector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Inflector Component", + "homepage": "https://symfony.com", + "keywords": [ + "inflection", + "pluralize", + "singularize", + "string", + "symfony", + "words" + ], + "time": "2017-08-31T20:46:21+00:00" + }, + { + "name": "symfony/intl", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/intl.git", + "reference": "2d6908f6ee80451ef754b39faa6307eae8884590" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/intl/zipball/2d6908f6ee80451ef754b39faa6307eae8884590", + "reference": "2d6908f6ee80451ef754b39faa6307eae8884590", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/polyfill-intl-icu": "~1.0" + }, + "require-dev": { + "symfony/filesystem": "~3.4|~4.0" + }, + "suggest": { + "ext-intl": "to use the component with locales other than \"en\"" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Intl\\": "" + }, + "classmap": [ + "Resources/stubs" + ], + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + }, + { + "name": "Eriksen Costa", + "email": "eriksen.costa@infranology.com.br" + }, + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A PHP replacement layer for the C intl extension that includes additional data from the ICU library.", + "homepage": "https://symfony.com", + "keywords": [ + "i18n", + "icu", + "internationalization", + "intl", + "l10n", + "localization" + ], + "time": "2017-11-19T18:43:46+00:00" + }, + { + "name": "symfony/monolog-bridge", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/monolog-bridge.git", + "reference": "55fead8897d6c17c4491b775c527421f10271bbb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/55fead8897d6c17c4491b775c527421f10271bbb", + "reference": "55fead8897d6c17c4491b775c527421f10271bbb", + "shasum": "" + }, + "require": { + "monolog/monolog": "~1.19", + "php": "^7.1.3", + "symfony/http-kernel": "~3.4|~4.0" + }, + "conflict": { + "symfony/http-foundation": "<3.4" + }, + "require-dev": { + "symfony/console": "~3.4|~4.0", + "symfony/event-dispatcher": "~3.4|~4.0", + "symfony/security-core": "~3.4|~4.0", + "symfony/var-dumper": "~3.4|~4.0" + }, + "suggest": { + "symfony/console": "For the possibility to show log messages in console commands depending on verbosity settings. You need version ~2.3 of the console for it.", + "symfony/event-dispatcher": "Needed when using log messages in console commands.", + "symfony/http-kernel": "For using the debugging handlers together with the response life cycle of the HTTP kernel." + }, + "type": "symfony-bridge", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bridge\\Monolog\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Monolog Bridge", + "homepage": "https://symfony.com", + "time": "2017-11-07T14:45:01+00:00" }, { "name": "symfony/monolog-bundle", @@ -1638,34 +2332,34 @@ "time": "2017-11-06T16:02:17+00:00" }, { - "name": "symfony/polyfill-apcu", - "version": "v1.6.0", + "name": "symfony/options-resolver", + "version": "v4.0.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-apcu.git", - "reference": "04f62674339602def515bff4bc6901fc1d4951e8" + "url": "https://github.com/symfony/options-resolver.git", + "reference": "ef617a2867c7d889d4ecee3c29595698d87474a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-apcu/zipball/04f62674339602def515bff4bc6901fc1d4951e8", - "reference": "04f62674339602def515bff4bc6901fc1d4951e8", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/ef617a2867c7d889d4ecee3c29595698d87474a4", + "reference": "ef617a2867c7d889d4ecee3c29595698d87474a4", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^7.1.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6-dev" + "dev-master": "4.0-dev" } }, "autoload": { "psr-4": { - "Symfony\\Polyfill\\Apcu\\": "" + "Symfony\\Component\\OptionsResolver\\": "" }, - "files": [ - "bootstrap.php" + "exclude-from-classmap": [ + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -1674,24 +2368,22 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting apcu_* functions to lower PHP versions", + "description": "Symfony OptionsResolver Component", "homepage": "https://symfony.com", "keywords": [ - "apcu", - "compatibility", - "polyfill", - "portable", - "shim" + "config", + "configuration", + "options" ], - "time": "2017-10-11T12:05:26+00:00" + "time": "2017-11-07T14:45:01+00:00" }, { "name": "symfony/polyfill-intl-icu", @@ -1811,361 +2503,293 @@ "time": "2017-10-11T12:05:26+00:00" }, { - "name": "symfony/polyfill-php56", - "version": "v1.6.0", + "name": "symfony/property-access", + "version": "v4.0.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php56.git", - "reference": "265fc96795492430762c29be291a371494ba3a5b" + "url": "https://github.com/symfony/property-access.git", + "reference": "220f386247615af26b23f81398f8e152e213af0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/265fc96795492430762c29be291a371494ba3a5b", - "reference": "265fc96795492430762c29be291a371494ba3a5b", + "url": "https://api.github.com/repos/symfony/property-access/zipball/220f386247615af26b23f81398f8e152e213af0c", + "reference": "220f386247615af26b23f81398f8e152e213af0c", "shasum": "" }, "require": { - "php": ">=5.3.3", - "symfony/polyfill-util": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.6-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php56\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "time": "2017-10-11T12:05:26+00:00" - }, - { - "name": "symfony/polyfill-php70", - "version": "v1.6.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php70.git", - "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff", - "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff", - "shasum": "" - }, - "require": { - "paragonie/random_compat": "~1.0|~2.0", - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.6-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php70\\": "" - }, - "files": [ - "bootstrap.php" - ], - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "time": "2017-10-11T12:05:26+00:00" - }, - { - "name": "symfony/polyfill-util", - "version": "v1.6.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-util.git", - "reference": "6e719200c8e540e0c0effeb31f96bdb344b94176" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/6e719200c8e540e0c0effeb31f96bdb344b94176", - "reference": "6e719200c8e540e0c0effeb31f96bdb344b94176", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.6-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Util\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony utilities for portability of PHP codes", - "homepage": "https://symfony.com", - "keywords": [ - "compat", - "compatibility", - "polyfill", - "shim" - ], - "time": "2017-10-11T12:05:26+00:00" - }, - { - "name": "symfony/swiftmailer-bundle", - "version": "v2.6.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/swiftmailer-bundle.git", - "reference": "c4808f5169efc05567be983909d00f00521c53ec" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/swiftmailer-bundle/zipball/c4808f5169efc05567be983909d00f00521c53ec", - "reference": "c4808f5169efc05567be983909d00f00521c53ec", - "shasum": "" - }, - "require": { - "php": ">=5.3.2", - "swiftmailer/swiftmailer": "~4.2|~5.0", - "symfony/config": "~2.7|~3.0", - "symfony/dependency-injection": "~2.7|~3.0", - "symfony/http-kernel": "~2.7|~3.0" + "php": "^7.1.3", + "symfony/inflector": "~3.4|~4.0" }, "require-dev": { - "symfony/console": "~2.7|~3.0", - "symfony/framework-bundle": "~2.7|~3.0", - "symfony/phpunit-bridge": "~3.3@dev", - "symfony/yaml": "~2.7|~3.0" + "symfony/cache": "~3.4|~4.0" }, "suggest": { - "psr/log": "Allows logging" + "psr/cache-implementation": "To cache access methods." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\PropertyAccess\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony PropertyAccess Component", + "homepage": "https://symfony.com", + "keywords": [ + "access", + "array", + "extraction", + "index", + "injection", + "object", + "property", + "property path", + "reflection" + ], + "time": "2017-11-19T18:43:46+00:00" + }, + { + "name": "symfony/routing", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "82c0de9bfc4b295e11a172d5f98b60b88611e0e7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/82c0de9bfc4b295e11a172d5f98b60b88611e0e7", + "reference": "82c0de9bfc4b295e11a172d5f98b60b88611e0e7", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "conflict": { + "symfony/config": "<3.4", + "symfony/dependency-injection": "<3.4", + "symfony/yaml": "<3.4" + }, + "require-dev": { + "doctrine/annotations": "~1.0", + "doctrine/common": "~2.2", + "psr/log": "~1.0", + "symfony/config": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/expression-language": "~3.4|~4.0", + "symfony/http-foundation": "~3.4|~4.0", + "symfony/yaml": "~3.4|~4.0" + }, + "suggest": { + "doctrine/annotations": "For using the annotation loader", + "symfony/config": "For using the all-in-one router or any loader", + "symfony/dependency-injection": "For loading routes from a service", + "symfony/expression-language": "For using expression matching", + "symfony/http-foundation": "For using a Symfony Request object", + "symfony/yaml": "For using the YAML loader" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Routing Component", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "time": "2017-11-24T14:34:08+00:00" + }, + { + "name": "symfony/twig-bridge", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/twig-bridge.git", + "reference": "3513e775dfca0e25e8f908f3fc9a0a7aa3417c06" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/3513e775dfca0e25e8f908f3fc9a0a7aa3417c06", + "reference": "3513e775dfca0e25e8f908f3fc9a0a7aa3417c06", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "twig/twig": "^1.35|^2.4.4" + }, + "conflict": { + "symfony/console": "<3.4", + "symfony/form": "<3.4" + }, + "require-dev": { + "fig/link-util": "^1.0", + "symfony/asset": "~3.4|~4.0", + "symfony/console": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/expression-language": "~3.4|~4.0", + "symfony/finder": "~3.4|~4.0", + "symfony/form": "~3.4-beta4|~4.0-beta4", + "symfony/http-foundation": "~3.4|~4.0", + "symfony/http-kernel": "~3.4|~4.0", + "symfony/polyfill-intl-icu": "~1.0", + "symfony/routing": "~3.4|~4.0", + "symfony/security": "~3.4|~4.0", + "symfony/security-acl": "~2.8|~3.0", + "symfony/stopwatch": "~3.4|~4.0", + "symfony/templating": "~3.4|~4.0", + "symfony/translation": "~3.4|~4.0", + "symfony/var-dumper": "~3.4|~4.0", + "symfony/web-link": "~3.4|~4.0", + "symfony/yaml": "~3.4|~4.0" + }, + "suggest": { + "symfony/asset": "For using the AssetExtension", + "symfony/expression-language": "For using the ExpressionExtension", + "symfony/finder": "", + "symfony/form": "For using the FormExtension", + "symfony/http-kernel": "For using the HttpKernelExtension", + "symfony/routing": "For using the RoutingExtension", + "symfony/security": "For using the SecurityExtension", + "symfony/stopwatch": "For using the StopwatchExtension", + "symfony/templating": "For using the TwigEngine", + "symfony/translation": "For using the TranslationExtension", + "symfony/var-dumper": "For using the DumpExtension", + "symfony/web-link": "For using the WebLinkExtension", + "symfony/yaml": "For using the YamlExtension" + }, + "type": "symfony-bridge", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bridge\\Twig\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Twig Bridge", + "homepage": "https://symfony.com", + "time": "2017-11-21T17:21:10+00:00" + }, + { + "name": "symfony/twig-bundle", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/twig-bundle.git", + "reference": "6e9cfceb5a3f5fc810dd66f70454de34405a9356" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/twig-bundle/zipball/6e9cfceb5a3f5fc810dd66f70454de34405a9356", + "reference": "6e9cfceb5a3f5fc810dd66f70454de34405a9356", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/config": "~3.4|~4.0", + "symfony/http-foundation": "~3.4|~4.0", + "symfony/http-kernel": "~3.4|~4.0", + "symfony/twig-bridge": "~3.4|~4.0", + "twig/twig": "~1.34|~2.4" + }, + "conflict": { + "symfony/dependency-injection": "<3.4", + "symfony/event-dispatcher": "<3.4" + }, + "require-dev": { + "doctrine/annotations": "~1.0", + "doctrine/cache": "~1.0", + "symfony/asset": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/expression-language": "~3.4|~4.0", + "symfony/finder": "~3.4|~4.0", + "symfony/form": "~3.4|~4.0", + "symfony/framework-bundle": "~3.4|~4.0", + "symfony/routing": "~3.4|~4.0", + "symfony/stopwatch": "~3.4|~4.0", + "symfony/templating": "~3.4|~4.0", + "symfony/web-link": "~3.4|~4.0", + "symfony/yaml": "~3.4|~4.0" }, "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "2.6-dev" + "dev-master": "4.0-dev" } }, "autoload": { "psr-4": { - "Symfony\\Bundle\\SwiftmailerBundle\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" + "Symfony\\Bundle\\TwigBundle\\": "" }, - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "Symfony SwiftmailerBundle", - "homepage": "http://symfony.com", - "time": "2017-10-19T01:06:41+00:00" - }, - { - "name": "symfony/symfony", - "version": "v3.3.10", - "source": { - "type": "git", - "url": "https://github.com/symfony/symfony.git", - "reference": "cfef3b2d505ae4375b17032bd03ed9a3da4b7b43" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/symfony/zipball/cfef3b2d505ae4375b17032bd03ed9a3da4b7b43", - "reference": "cfef3b2d505ae4375b17032bd03ed9a3da4b7b43", - "shasum": "" - }, - "require": { - "doctrine/common": "~2.4", - "ext-xml": "*", - "fig/link-util": "^1.0", - "php": "^5.5.9|>=7.0.8", - "psr/cache": "~1.0", - "psr/container": "^1.0", - "psr/link": "^1.0", - "psr/log": "~1.0", - "psr/simple-cache": "^1.0", - "symfony/polyfill-apcu": "~1.1", - "symfony/polyfill-intl-icu": "~1.0", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php56": "~1.0", - "symfony/polyfill-php70": "~1.0", - "symfony/polyfill-util": "~1.0", - "twig/twig": "~1.34|~2.4" - }, - "conflict": { - "phpdocumentor/reflection-docblock": "<3.0||>=3.2.0,<3.2.2", - "phpdocumentor/type-resolver": "<0.2.0", - "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" - }, - "provide": { - "psr/cache-implementation": "1.0", - "psr/container-implementation": "1.0", - "psr/simple-cache-implementation": "1.0" - }, - "replace": { - "symfony/asset": "self.version", - "symfony/browser-kit": "self.version", - "symfony/cache": "self.version", - "symfony/class-loader": "self.version", - "symfony/config": "self.version", - "symfony/console": "self.version", - "symfony/css-selector": "self.version", - "symfony/debug": "self.version", - "symfony/debug-bundle": "self.version", - "symfony/dependency-injection": "self.version", - "symfony/doctrine-bridge": "self.version", - "symfony/dom-crawler": "self.version", - "symfony/dotenv": "self.version", - "symfony/event-dispatcher": "self.version", - "symfony/expression-language": "self.version", - "symfony/filesystem": "self.version", - "symfony/finder": "self.version", - "symfony/form": "self.version", - "symfony/framework-bundle": "self.version", - "symfony/http-foundation": "self.version", - "symfony/http-kernel": "self.version", - "symfony/inflector": "self.version", - "symfony/intl": "self.version", - "symfony/ldap": "self.version", - "symfony/monolog-bridge": "self.version", - "symfony/options-resolver": "self.version", - "symfony/process": "self.version", - "symfony/property-access": "self.version", - "symfony/property-info": "self.version", - "symfony/proxy-manager-bridge": "self.version", - "symfony/routing": "self.version", - "symfony/security": "self.version", - "symfony/security-bundle": "self.version", - "symfony/security-core": "self.version", - "symfony/security-csrf": "self.version", - "symfony/security-guard": "self.version", - "symfony/security-http": "self.version", - "symfony/serializer": "self.version", - "symfony/stopwatch": "self.version", - "symfony/templating": "self.version", - "symfony/translation": "self.version", - "symfony/twig-bridge": "self.version", - "symfony/twig-bundle": "self.version", - "symfony/validator": "self.version", - "symfony/var-dumper": "self.version", - "symfony/web-link": "self.version", - "symfony/web-profiler-bundle": "self.version", - "symfony/web-server-bundle": "self.version", - "symfony/workflow": "self.version", - "symfony/yaml": "self.version" - }, - "require-dev": { - "cache/integration-tests": "dev-master", - "doctrine/cache": "~1.6", - "doctrine/data-fixtures": "1.0.*", - "doctrine/dbal": "~2.4", - "doctrine/doctrine-bundle": "~1.4", - "doctrine/orm": "~2.4,>=2.4.5", - "egulias/email-validator": "~1.2,>=1.2.8|~2.0", - "monolog/monolog": "~1.11", - "ocramius/proxy-manager": "~0.4|~1.0|~2.0", - "phpdocumentor/reflection-docblock": "^3.0|^4.0", - "predis/predis": "~1.0", - "sensio/framework-extra-bundle": "^3.0.2", - "symfony/phpunit-bridge": "~3.2", - "symfony/security-acl": "~2.8|~3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.3-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Bridge\\Doctrine\\": "src/Symfony/Bridge/Doctrine/", - "Symfony\\Bridge\\Monolog\\": "src/Symfony/Bridge/Monolog/", - "Symfony\\Bridge\\ProxyManager\\": "src/Symfony/Bridge/ProxyManager/", - "Symfony\\Bridge\\Twig\\": "src/Symfony/Bridge/Twig/", - "Symfony\\Bundle\\": "src/Symfony/Bundle/", - "Symfony\\Component\\": "src/Symfony/Component/" - }, - "classmap": [ - "src/Symfony/Component/Intl/Resources/stubs" - ], "exclude-from-classmap": [ - "**/Tests/" + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2182,29 +2806,85 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "The Symfony PHP framework", + "description": "Symfony TwigBundle", "homepage": "https://symfony.com", - "keywords": [ - "framework" - ], - "time": "2017-10-05T23:40:32+00:00" + "time": "2017-11-24T14:34:08+00:00" }, { - "name": "twig/twig", - "version": "v1.35.0", + "name": "symfony/yaml", + "version": "v3.4.0", "source": { "type": "git", - "url": "https://github.com/twigphp/Twig.git", - "reference": "daa657073e55b0a78cce8fdd22682fddecc6385f" + "url": "https://github.com/symfony/yaml.git", + "reference": "b3d0c9c11be3831b84825967dc6b52b5a7b84e04" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/daa657073e55b0a78cce8fdd22682fddecc6385f", - "reference": "daa657073e55b0a78cce8fdd22682fddecc6385f", + "url": "https://api.github.com/repos/symfony/yaml/zipball/b3d0c9c11be3831b84825967dc6b52b5a7b84e04", + "reference": "b3d0c9c11be3831b84825967dc6b52b5a7b84e04", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^5.5.9|>=7.0.8" + }, + "conflict": { + "symfony/console": "<3.4" + }, + "require-dev": { + "symfony/console": "~3.4|~4.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.4-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Yaml Component", + "homepage": "https://symfony.com", + "time": "2017-11-29T13:28:14+00:00" + }, + { + "name": "twig/twig", + "version": "v2.4.4", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "eddb97148ad779f27e670e1e3f19fb323aedafeb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/eddb97148ad779f27e670e1e3f19fb323aedafeb", + "reference": "eddb97148ad779f27e670e1e3f19fb323aedafeb", + "shasum": "" + }, + "require": { + "php": "^7.0", + "symfony/polyfill-mbstring": "~1.0" }, "require-dev": { "psr/container": "^1.0", @@ -2214,7 +2894,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.35-dev" + "dev-master": "2.4-dev" } }, "autoload": { @@ -2252,1003 +2932,39 @@ "keywords": [ "templating" ], - "time": "2017-09-27T18:06:46+00:00" + "time": "2017-09-27T18:10:31+00:00" } ], "packages-dev": [ { - "name": "phpdocumentor/reflection-common", - "version": "1.0.1", + "name": "symfony/dotenv", + "version": "v3.4.0", "source": { "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" + "url": "https://github.com/symfony/dotenv.git", + "reference": "b6b1d1a58c974ddf3f49ab251dbe868f74a4f69a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", - "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "url": "https://api.github.com/repos/symfony/dotenv/zipball/b6b1d1a58c974ddf3f49ab251dbe868f74a4f69a", + "reference": "b6b1d1a58c974ddf3f49ab251dbe868f74a4f69a", "shasum": "" }, "require": { - "php": ">=5.5" + "php": "^5.5.9|>=7.0.8" }, "require-dev": { - "phpunit/phpunit": "^4.6" + "symfony/process": "~3.2|~4.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "3.4-dev" } }, "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], - "time": "2017-09-11T18:02:19+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "3.2.2", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "4aada1f93c72c35e22fb1383b47fee43b8f1d157" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/4aada1f93c72c35e22fb1383b47fee43b8f1d157", - "reference": "4aada1f93c72c35e22fb1383b47fee43b8f1d157", - "shasum": "" - }, - "require": { - "php": ">=5.5", - "phpdocumentor/reflection-common": "^1.0@dev", - "phpdocumentor/type-resolver": "^0.3.0", - "webmozart/assert": "^1.0" - }, - "require-dev": { - "mockery/mockery": "^0.9.4", - "phpunit/phpunit": "^4.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src/" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2017-08-08T06:39:58+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "0.3.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "fb3933512008d8162b3cdf9e18dba9309b7c3773" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/fb3933512008d8162b3cdf9e18dba9309b7c3773", - "reference": "fb3933512008d8162b3cdf9e18dba9309b7c3773", - "shasum": "" - }, - "require": { - "php": "^5.5 || ^7.0", - "phpdocumentor/reflection-common": "^1.0" - }, - "require-dev": { - "mockery/mockery": "^0.9.4", - "phpunit/phpunit": "^5.2||^4.8.24" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src/" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "time": "2017-06-03T08:32:36+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "v1.7.2", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6", - "reference": "c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", - "sebastian/comparator": "^1.1|^2.0", - "sebastian/recursion-context": "^1.0|^2.0|^3.0" - }, - "require-dev": { - "phpspec/phpspec": "^2.5|^3.2", - "phpunit/phpunit": "^4.8 || ^5.6.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.7.x-dev" - } - }, - "autoload": { - "psr-0": { - "Prophecy\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "time": "2017-09-04T11:05:03+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "2.2.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": "~1.3", - "phpunit/php-text-template": "~1.2", - "phpunit/php-token-stream": "~1.3", - "sebastian/environment": "^1.3.2", - "sebastian/version": "~1.0" - }, - "require-dev": { - "ext-xdebug": ">=2.1.4", - "phpunit/phpunit": "~4" - }, - "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.2.1", - "ext-xmlwriter": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "time": "2015-10-06T15:47:00+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "1.4.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5", - "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "time": "2016-10-03T07:40:28+00:00" - }, - { - "name": "phpunit/php-text-template", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "time": "2015-06-21T13:50:34+00:00" - }, - { - "name": "phpunit/php-timer", - "version": "1.0.9", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "time": "2017-02-26T11:10:40+00:00" - }, - { - "name": "phpunit/php-token-stream", - "version": "1.4.11", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/e03f8f67534427a787e21a385a67ec3ca6978ea7", - "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", - "keywords": [ - "tokenizer" - ], - "time": "2017-02-27T10:12:30+00:00" - }, - { - "name": "phpunit/phpunit", - "version": "4.8.36", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "46023de9a91eec7dfb06cc56cb4e260017298517" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517", - "reference": "46023de9a91eec7dfb06cc56cb4e260017298517", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*", - "php": ">=5.3.3", - "phpspec/prophecy": "^1.3.1", - "phpunit/php-code-coverage": "~2.1", - "phpunit/php-file-iterator": "~1.4", - "phpunit/php-text-template": "~1.2", - "phpunit/php-timer": "^1.0.6", - "phpunit/phpunit-mock-objects": "~2.3", - "sebastian/comparator": "~1.2.2", - "sebastian/diff": "~1.2", - "sebastian/environment": "~1.3", - "sebastian/exporter": "~1.2", - "sebastian/global-state": "~1.0", - "sebastian/version": "~1.0", - "symfony/yaml": "~2.1|~3.0" - }, - "suggest": { - "phpunit/php-invoker": "~1.1" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.8.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "time": "2017-06-21T08:07:12+00:00" - }, - { - "name": "phpunit/phpunit-mock-objects", - "version": "2.3.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": ">=5.3.3", - "phpunit/php-text-template": "~1.2", - "sebastian/exporter": "~1.2" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "suggest": { - "ext-soap": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", - "keywords": [ - "mock", - "xunit" - ], - "time": "2015-10-02T06:51:40+00:00" - }, - { - "name": "sebastian/comparator", - "version": "1.2.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "sebastian/diff": "~1.2", - "sebastian/exporter": "~1.2 || ~2.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "http://www.github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "time": "2017-01-29T09:50:25+00:00" - }, - { - "name": "sebastian/diff", - "version": "1.4.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff" - ], - "time": "2017-05-22T07:24:03+00:00" - }, - { - "name": "sebastian/environment", - "version": "1.3.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea", - "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8 || ^5.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "time": "2016-08-18T05:49:44+00:00" - }, - { - "name": "sebastian/exporter", - "version": "1.2.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "sebastian/recursion-context": "~1.0" - }, - "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "time": "2016-06-17T09:04:28+00:00" - }, - { - "name": "sebastian/global-state", - "version": "1.1.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "suggest": { - "ext-uopz": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "time": "2015-10-12T03:26:01+00:00" - }, - { - "name": "sebastian/recursion-context", - "version": "1.0.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7", - "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2016-10-03T07:41:43+00:00" - }, - { - "name": "sebastian/version", - "version": "1.0.6", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "shasum": "" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "time": "2015-06-21T13:59:46+00:00" - }, - { - "name": "sensio/generator-bundle", - "version": "v3.1.6", - "source": { - "type": "git", - "url": "https://github.com/sensiolabs/SensioGeneratorBundle.git", - "reference": "128bc5dabc91ca40b7445f094968dd70ccd58305" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/128bc5dabc91ca40b7445f094968dd70ccd58305", - "reference": "128bc5dabc91ca40b7445f094968dd70ccd58305", - "shasum": "" - }, - "require": { - "symfony/console": "~2.7|~3.0", - "symfony/framework-bundle": "~2.7|~3.0", - "symfony/process": "~2.7|~3.0", - "symfony/yaml": "~2.7|~3.0", - "twig/twig": "^1.28.2|^2.0" - }, - "require-dev": { - "doctrine/orm": "~2.4", - "symfony/doctrine-bridge": "~2.7|~3.0", - "symfony/filesystem": "~2.7|~3.0", - "symfony/phpunit-bridge": "^3.3" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "3.1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Sensio\\Bundle\\GeneratorBundle\\": "" + "Symfony\\Component\\Dotenv\\": "" }, "exclude-from-classmap": [ "/Tests/" @@ -3262,103 +2978,53 @@ { "name": "Fabien Potencier", "email": "fabien@symfony.com" - } - ], - "description": "This bundle generates code for you", - "time": "2017-07-18T07:57:44+00:00" - }, - { - "name": "symfony/phpunit-bridge", - "version": "v3.3.10", - "source": { - "type": "git", - "url": "https://github.com/symfony/phpunit-bridge.git", - "reference": "6e40d1c8bc4037edf3852c0b29fdd2923c4e2133" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/6e40d1c8bc4037edf3852c0b29fdd2923c4e2133", - "reference": "6e40d1c8bc4037edf3852c0b29fdd2923c4e2133", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "conflict": { - "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" - }, - "suggest": { - "ext-zip": "Zip support is required when using bin/simple-phpunit", - "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" - }, - "bin": [ - "bin/simple-phpunit" - ], - "type": "symfony-bridge", - "extra": { - "branch-alias": { - "dev-master": "3.3-dev" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Bridge\\PhpUnit\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony PHPUnit Bridge", + "description": "Registers environment variables from a .env file", "homepage": "https://symfony.com", - "time": "2017-10-02T06:54:00+00:00" + "keywords": [ + "dotenv", + "env", + "environment" + ], + "time": "2017-11-30T14:59:23+00:00" }, { - "name": "webmozart/assert", - "version": "1.2.0", + "name": "symfony/flex", + "version": "v1.0.42", "source": { "type": "git", - "url": "https://github.com/webmozart/assert.git", - "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f" + "url": "https://github.com/symfony/flex.git", + "reference": "a1117ae366eae895a449db63eda58035b112dda9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f", - "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f", + "url": "https://api.github.com/repos/symfony/flex/zipball/a1117ae366eae895a449db63eda58035b112dda9", + "reference": "a1117ae366eae895a449db63eda58035b112dda9", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0" + "composer-plugin-api": "^1.1", + "php": "^7.0" }, "require-dev": { - "phpunit/phpunit": "^4.6", - "sebastian/version": "^1.0.1" + "composer/composer": "^1.4", + "symfony/phpunit-bridge": "^3.2.8" }, - "type": "library", + "type": "composer-plugin", "extra": { "branch-alias": { - "dev-master": "1.3-dev" - } + "dev-master": "1.0-dev" + }, + "class": "Symfony\\Flex\\Flex" }, "autoload": { "psr-4": { - "Webmozart\\Assert\\": "src/" + "Symfony\\Flex\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -3367,17 +3033,11 @@ ], "authors": [ { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" + "name": "Fabien Potencier", + "email": "fabien.potencier@gmail.com" } ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "time": "2016-11-23T20:04:58+00:00" + "time": "2017-11-29T02:36:07+00:00" } ], "aliases": [], @@ -3386,10 +3046,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=5.5.9" + "php": "^7.0.8" }, - "platform-dev": [], - "platform-overrides": { - "php": "5.5.9" - } + "platform-dev": [] } diff --git a/config/bundles.php b/config/bundles.php new file mode 100644 index 0000000..2fd7387 --- /dev/null +++ b/config/bundles.php @@ -0,0 +1,11 @@ + ['all' => true], + Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true], + Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true], + Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true], + Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], + Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true], + Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true], +]; diff --git a/config/packages/dev/monolog.yaml b/config/packages/dev/monolog.yaml new file mode 100644 index 0000000..3662592 --- /dev/null +++ b/config/packages/dev/monolog.yaml @@ -0,0 +1,19 @@ +monolog: + handlers: + main: + type: stream + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: debug + channels: ["!event"] + # uncomment to get logging in your browser + # you may have to allow bigger header sizes in your Web server configuration + #firephp: + # type: firephp + # level: info + #chromephp: + # type: chromephp + # level: info + console: + type: console + process_psr_3_messages: false + channels: ["!event", "!doctrine", "!console"] diff --git a/config/packages/dev/routing.yaml b/config/packages/dev/routing.yaml new file mode 100644 index 0000000..4116679 --- /dev/null +++ b/config/packages/dev/routing.yaml @@ -0,0 +1,3 @@ +framework: + router: + strict_requirements: true diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml new file mode 100644 index 0000000..07b2b59 --- /dev/null +++ b/config/packages/doctrine.yaml @@ -0,0 +1,30 @@ +parameters: + # Adds a fallback DATABASE_URL if the env var is not set. + # This allows you to run cache:warmup even if your + # environment variables are not available yet. + # You should not need to change this value. + env(DATABASE_URL): '' + +doctrine: + dbal: + # configure these for your database server + driver: 'pdo_pgsql' + types: + money: CameraBundle\Types\MoneyType + mapping_types: + bit: boolean + money: money + + # With Symfony 3.3, remove the `resolve:` prefix + url: '%env(resolve:DATABASE_URL)%' + orm: + auto_generate_proxy_classes: '%kernel.debug%' + naming_strategy: doctrine.orm.naming_strategy.underscore + auto_mapping: true + mappings: + App: + is_bundle: false + type: annotation + dir: '%kernel.project_dir%/src/Entity' + prefix: 'App\Entity' + alias: App diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml new file mode 100644 index 0000000..bc68ab7 --- /dev/null +++ b/config/packages/framework.yaml @@ -0,0 +1,16 @@ +framework: + secret: '%env(APP_SECRET)%' + #default_locale: en + #csrf_protection: ~ + #http_method_override: true + #trusted_hosts: ~ + + # uncomment this entire section to enable sessions + #session: + # # With this config, PHP's native session handling is used + # handler_id: ~ + + #esi: ~ + #fragments: ~ + php_errors: + log: true diff --git a/config/packages/prod/doctrine.yaml b/config/packages/prod/doctrine.yaml new file mode 100644 index 0000000..2f16f0f --- /dev/null +++ b/config/packages/prod/doctrine.yaml @@ -0,0 +1,31 @@ +doctrine: + orm: + metadata_cache_driver: + type: service + id: doctrine.system_cache_provider + query_cache_driver: + type: service + id: doctrine.system_cache_provider + result_cache_driver: + type: service + id: doctrine.result_cache_provider + +services: + doctrine.result_cache_provider: + class: Symfony\Component\Cache\DoctrineProvider + public: false + arguments: + - '@doctrine.result_cache_pool' + doctrine.system_cache_provider: + class: Symfony\Component\Cache\DoctrineProvider + public: false + arguments: + - '@doctrine.system_cache_pool' + +framework: + cache: + pools: + doctrine.result_cache_pool: + adapter: cache.app + doctrine.system_cache_pool: + adapter: cache.system diff --git a/app/config/config_prod.yml b/config/packages/prod/monolog.yaml similarity index 50% rename from app/config/config_prod.yml rename to config/packages/prod/monolog.yaml index 5d460ce..90e1a4c 100644 --- a/app/config/config_prod.yml +++ b/config/packages/prod/monolog.yaml @@ -1,22 +1,17 @@ -imports: - - { resource: config.yml } - -#doctrine: -# orm: -# metadata_cache_driver: apc -# result_cache_driver: apc -# query_cache_driver: apc - monolog: handlers: main: type: fingers_crossed action_level: error handler: nested + excluded_404s: + # regex: exclude all 404 errors from the logs + - ^/ nested: type: stream - path: '%kernel.logs_dir%/%kernel.environment%.log' + path: "%kernel.logs_dir%/%kernel.environment%.log" level: debug console: - type: console + type: console process_psr_3_messages: false + channels: ["!event", "!doctrine"] diff --git a/config/packages/routing.yaml b/config/packages/routing.yaml new file mode 100644 index 0000000..368bc7f --- /dev/null +++ b/config/packages/routing.yaml @@ -0,0 +1,3 @@ +framework: + router: + strict_requirements: ~ diff --git a/config/packages/test/framework.yaml b/config/packages/test/framework.yaml new file mode 100644 index 0000000..9c5dc40 --- /dev/null +++ b/config/packages/test/framework.yaml @@ -0,0 +1,4 @@ +framework: + test: ~ + #session: + # storage_id: session.storage.mock_file diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml new file mode 100644 index 0000000..3b315dc --- /dev/null +++ b/config/packages/twig.yaml @@ -0,0 +1,4 @@ +twig: + paths: ['%kernel.project_dir%/templates'] + debug: '%kernel.debug%' + strict_variables: '%kernel.debug%' diff --git a/config/routes-orig.yaml b/config/routes-orig.yaml new file mode 100644 index 0000000..3fab0c6 --- /dev/null +++ b/config/routes-orig.yaml @@ -0,0 +1,3 @@ +#index: +# path: / +# defaults: { _controller: 'App\Controller\DefaultController::index' } diff --git a/app/config/routing.yml b/config/routes.yml similarity index 100% rename from app/config/routing.yml rename to config/routes.yml diff --git a/config/routes/annotations.yaml b/config/routes/annotations.yaml new file mode 100644 index 0000000..b662dc9 --- /dev/null +++ b/config/routes/annotations.yaml @@ -0,0 +1,3 @@ +controllers: + resource: ../src/Controller/ + type: annotation diff --git a/config/routes/dev/twig.yaml b/config/routes/dev/twig.yaml new file mode 100644 index 0000000..f4ee839 --- /dev/null +++ b/config/routes/dev/twig.yaml @@ -0,0 +1,3 @@ +_errors: + resource: '@TwigBundle/Resources/config/routing/errors.xml' + prefix: /_error diff --git a/config/services-orig.yaml b/config/services-orig.yaml new file mode 100644 index 0000000..818789d --- /dev/null +++ b/config/services-orig.yaml @@ -0,0 +1,27 @@ +# Put parameters here that don't need to change on each machine where the app is deployed +# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration +parameters: + +services: + # default configuration for services in *this* file + _defaults: + autowire: true # Automatically injects dependencies in your services. + autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. + public: false # Allows optimizing the container by removing unused services; this also means + # fetching services directly from the container via $container->get() won't work. + # The best practice is to be explicit about your dependencies anyway. + + # makes classes in src/ available to be used as services + # this creates a service per class whose id is the fully-qualified class name + CameraBundle\: + resource: '../src/*' + exclude: '../src/{Entity,Migrations,Tests}' + + # controllers are imported separately to make sure services can be injected + # as action arguments even if you don't extend any base controller class + CameraBundle\Controller\: + resource: '../src/Controller' + tags: ['controller.service_arguments'] + + # add more service definitions when explicit configuration is needed + # please note that last definitions always *replace* previous ones diff --git a/app/config/services.yml b/config/services.yml similarity index 88% rename from app/config/services.yml rename to config/services.yml index 059cb99..06ef161 100644 --- a/app/config/services.yml +++ b/config/services.yml @@ -17,15 +17,15 @@ services: # makes classes in src/CameraBundle available to be used as services # this creates a service per class whose id is the fully-qualified class name CameraBundle\: - resource: '../../src/CameraBundle/*' + resource: '../src/*' # you can exclude directories or files # but if a service is unused, it's removed anyway - exclude: '../../src/CameraBundle/{Entity,Repository,Tests}' + exclude: '../src/{Entity,Repository,Tests}' # controllers are imported separately to make sure they're public # and have a tag that allows actions to type-hint services CameraBundle\Controller\: - resource: '../../src/CameraBundle/Controller' + resource: '../src/Controller' public: true tags: ['controller.service_arguments'] diff --git a/phpunit.xml.dist b/phpunit.xml.dist deleted file mode 100644 index 5a12e67..0000000 --- a/phpunit.xml.dist +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - tests - - - - - - src - - src/*Bundle/Resources - src/*/*Bundle/Resources - src/*/Bundle/*Bundle/Resources - - - - diff --git a/web/css/app.css b/public/css/app.css similarity index 100% rename from web/css/app.css rename to public/css/app.css diff --git a/web/css/foundation.css b/public/css/foundation.css similarity index 100% rename from web/css/foundation.css rename to public/css/foundation.css diff --git a/web/css/foundation.min.css b/public/css/foundation.min.css similarity index 100% rename from web/css/foundation.min.css rename to public/css/foundation.min.css diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..dc460ae Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..3c32a97 --- /dev/null +++ b/public/index.php @@ -0,0 +1,30 @@ +load(__DIR__.'/../.env'); +} + +if ($_SERVER['APP_DEBUG'] ?? ('prod' !== ($_SERVER['APP_ENV'] ?? 'dev'))) { + umask(0000); + + Debug::enable(); +} + +// Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED); + +$kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', $_SERVER['APP_DEBUG'] ?? ('prod' !== ($_SERVER['APP_ENV'] ?? 'dev'))); +$request = Request::createFromGlobals(); +$response = $kernel->handle($request); +$response->send(); +$kernel->terminate($request, $response); diff --git a/web/js/app.js b/public/js/app.js similarity index 100% rename from web/js/app.js rename to public/js/app.js diff --git a/web/js/table-sort.js b/public/js/table-sort.js similarity index 100% rename from web/js/table-sort.js rename to public/js/table-sort.js diff --git a/web/js/vendor/foundation.js b/public/js/vendor/foundation.js similarity index 100% rename from web/js/vendor/foundation.js rename to public/js/vendor/foundation.js diff --git a/web/js/vendor/foundation.min.js b/public/js/vendor/foundation.min.js similarity index 100% rename from web/js/vendor/foundation.min.js rename to public/js/vendor/foundation.min.js diff --git a/web/js/vendor/jquery.js b/public/js/vendor/jquery.js similarity index 100% rename from web/js/vendor/jquery.js rename to public/js/vendor/jquery.js diff --git a/web/js/vendor/what-input.js b/public/js/vendor/what-input.js similarity index 100% rename from web/js/vendor/what-input.js rename to public/js/vendor/what-input.js diff --git a/src/.htaccess b/src/.htaccess deleted file mode 100644 index fb1de45..0000000 --- a/src/.htaccess +++ /dev/null @@ -1,7 +0,0 @@ - - Require all denied - - - Order deny,allow - Deny from all - diff --git a/src/CameraBundle/CameraBundle.php b/src/CameraBundle.php similarity index 100% rename from src/CameraBundle/CameraBundle.php rename to src/CameraBundle.php diff --git a/src/CameraBundle/Controller/CameraController.php b/src/CameraBundle/Controller/CameraController.php deleted file mode 100644 index 156de6a..0000000 --- a/src/CameraBundle/Controller/CameraController.php +++ /dev/null @@ -1,141 +0,0 @@ -getDoctrine()->getManager(); - - $cameras = $em->getRepository('CameraBundle:Camera')->findBy([], [ - 'received' => 'DESC', - 'brand' => 'ASC', - 'mount' => 'ASC', - 'model' => 'ASC', - ]); - - return $this->render('camera/index.html.twig', array( - 'cameras' => $cameras, - )); - } - - /** - * Creates a new camera entity. - * - * @Route("/new", name="camera_new") - * @Method({"GET", "POST"}) - */ - public function newAction(Request $request) - { - $camera = new Camera(); - $form = $this->createForm('CameraBundle\Form\CameraType', $camera); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid()) { - $em = $this->getDoctrine()->getManager(); - $em->persist($camera); - $em->flush(); - - return $this->redirectToRoute('camera_show', array('id' => $camera->getId())); - } - - return $this->render('camera/new.html.twig', array( - 'camera' => $camera, - 'form' => $form->createView(), - )); - } - - /** - * Finds and displays a camera entity. - * - * @Route("/{id}", name="camera_show") - * @Method("GET") - */ - public function showAction(Camera $camera) - { - $deleteForm = $this->createDeleteForm($camera); - - return $this->render('camera/show.html.twig', array( - 'camera' => $camera, - 'delete_form' => $deleteForm->createView(), - )); - } - - /** - * Displays a form to edit an existing camera entity. - * - * @Route("/{id}/edit", name="camera_edit") - * @Method({"GET", "POST"}) - */ - public function editAction(Request $request, Camera $camera) - { - $deleteForm = $this->createDeleteForm($camera); - $editForm = $this->createForm('CameraBundle\Form\CameraType', $camera); - $editForm->handleRequest($request); - - if ($editForm->isSubmitted() && $editForm->isValid()) { - $this->getDoctrine()->getManager()->flush(); - - return $this->redirectToRoute('camera_edit', array('id' => $camera->getId())); - } - - return $this->render('camera/edit.html.twig', array( - 'camera' => $camera, - 'edit_form' => $editForm->createView(), - 'delete_form' => $deleteForm->createView(), - )); - } - - /** - * Deletes a camera entity. - * - * @Route("/{id}", name="camera_delete") - * @Method("DELETE") - */ - public function deleteAction(Request $request, Camera $camera) - { - $form = $this->createDeleteForm($camera); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid()) { - $em = $this->getDoctrine()->getManager(); - $em->remove($camera); - $em->flush(); - } - - return $this->redirectToRoute('camera_index'); - } - - /** - * Creates a form to delete a camera entity. - * - * @param Camera $camera The camera entity - * - * @return \Symfony\Component\Form\Form The form - */ - private function createDeleteForm(Camera $camera) - { - return $this->createFormBuilder() - ->setAction($this->generateUrl('camera_delete', array('id' => $camera->getId()))) - ->setMethod('DELETE') - ->getForm() - ; - } -} diff --git a/src/CameraBundle/Controller/CameraTypeController.php b/src/CameraBundle/Controller/CameraTypeController.php deleted file mode 100644 index 79c17d2..0000000 --- a/src/CameraBundle/Controller/CameraTypeController.php +++ /dev/null @@ -1,138 +0,0 @@ -getDoctrine()->getManager(); - - $cameraTypes = $em->getRepository('CameraBundle:CameraType')->findBy([], [ - 'type' => 'ASC' - ]); - - return $this->render('cameratype/index.html.twig', array( - 'cameraTypes' => $cameraTypes, - )); - } - - /** - * Creates a new cameraType entity. - * - * @Route("/new", name="camera-type_new") - * @Method({"GET", "POST"}) - */ - public function newAction(Request $request) - { - $cameraType = new Cameratype(); - $form = $this->createForm('CameraBundle\Form\CameraTypeType', $cameraType); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid()) { - $em = $this->getDoctrine()->getManager(); - $em->persist($cameraType); - $em->flush(); - - return $this->redirectToRoute('camera-type_show', array('id' => $cameraType->getId())); - } - - return $this->render('cameratype/new.html.twig', array( - 'cameraType' => $cameraType, - 'form' => $form->createView(), - )); - } - - /** - * Finds and displays a cameraType entity. - * - * @Route("/{id}", name="camera-type_show") - * @Method("GET") - */ - public function showAction(CameraType $cameraType) - { - $deleteForm = $this->createDeleteForm($cameraType); - - return $this->render('cameratype/show.html.twig', array( - 'cameraType' => $cameraType, - 'delete_form' => $deleteForm->createView(), - )); - } - - /** - * Displays a form to edit an existing cameraType entity. - * - * @Route("/{id}/edit", name="camera-type_edit") - * @Method({"GET", "POST"}) - */ - public function editAction(Request $request, CameraType $cameraType) - { - $deleteForm = $this->createDeleteForm($cameraType); - $editForm = $this->createForm('CameraBundle\Form\CameraTypeType', $cameraType); - $editForm->handleRequest($request); - - if ($editForm->isSubmitted() && $editForm->isValid()) { - $this->getDoctrine()->getManager()->flush(); - - return $this->redirectToRoute('camera-type_edit', array('id' => $cameraType->getId())); - } - - return $this->render('cameratype/edit.html.twig', array( - 'cameraType' => $cameraType, - 'edit_form' => $editForm->createView(), - 'delete_form' => $deleteForm->createView(), - )); - } - - /** - * Deletes a cameraType entity. - * - * @Route("/{id}", name="camera-type_delete") - * @Method("DELETE") - */ - public function deleteAction(Request $request, CameraType $cameraType) - { - $form = $this->createDeleteForm($cameraType); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid()) { - $em = $this->getDoctrine()->getManager(); - $em->remove($cameraType); - $em->flush(); - } - - return $this->redirectToRoute('camera-type_index'); - } - - /** - * Creates a form to delete a cameraType entity. - * - * @param CameraType $cameraType The cameraType entity - * - * @return \Symfony\Component\Form\Form The form - */ - private function createDeleteForm(CameraType $cameraType) - { - return $this->createFormBuilder() - ->setAction($this->generateUrl('camera-type_delete', array('id' => $cameraType->getId()))) - ->setMethod('DELETE') - ->getForm() - ; - } -} diff --git a/src/CameraBundle/Controller/DefaultController.php b/src/CameraBundle/Controller/DefaultController.php deleted file mode 100644 index d8dccb7..0000000 --- a/src/CameraBundle/Controller/DefaultController.php +++ /dev/null @@ -1,21 +0,0 @@ -render('default/index.html.twig', [ - 'base_dir' => realpath($this->getParameter('kernel.project_dir')).DIRECTORY_SEPARATOR, - ]); - } -} diff --git a/src/CameraBundle/Controller/FlashController.php b/src/CameraBundle/Controller/FlashController.php deleted file mode 100644 index 06fd6d0..0000000 --- a/src/CameraBundle/Controller/FlashController.php +++ /dev/null @@ -1,140 +0,0 @@ -getDoctrine()->getManager(); - - $flashes = $em->getRepository('CameraBundle:Flash')->findBy([], [ - 'received' => 'DESC', - 'brand' => 'ASC', - 'model' => 'ASC' - ]); - - return $this->render('flash/index.html.twig', array( - 'flashes' => $flashes, - )); - } - - /** - * Creates a new flash entity. - * - * @Route("/new", name="flash_new") - * @Method({"GET", "POST"}) - */ - public function newAction(Request $request) - { - $flash = new Flash(); - $form = $this->createForm('CameraBundle\Form\FlashType', $flash); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid()) { - $em = $this->getDoctrine()->getManager(); - $em->persist($flash); - $em->flush(); - - return $this->redirectToRoute('flash_show', array('id' => $flash->getId())); - } - - return $this->render('flash/new.html.twig', array( - 'flash' => $flash, - 'form' => $form->createView(), - )); - } - - /** - * Finds and displays a flash entity. - * - * @Route("/{id}", name="flash_show") - * @Method("GET") - */ - public function showAction(Flash $flash) - { - $deleteForm = $this->createDeleteForm($flash); - - return $this->render('flash/show.html.twig', array( - 'flash' => $flash, - 'delete_form' => $deleteForm->createView(), - )); - } - - /** - * Displays a form to edit an existing flash entity. - * - * @Route("/{id}/edit", name="flash_edit") - * @Method({"GET", "POST"}) - */ - public function editAction(Request $request, Flash $flash) - { - $deleteForm = $this->createDeleteForm($flash); - $editForm = $this->createForm('CameraBundle\Form\FlashType', $flash); - $editForm->handleRequest($request); - - if ($editForm->isSubmitted() && $editForm->isValid()) { - $this->getDoctrine()->getManager()->flush(); - - return $this->redirectToRoute('flash_edit', array('id' => $flash->getId())); - } - - return $this->render('flash/edit.html.twig', array( - 'flash' => $flash, - 'edit_form' => $editForm->createView(), - 'delete_form' => $deleteForm->createView(), - )); - } - - /** - * Deletes a flash entity. - * - * @Route("/{id}", name="flash_delete") - * @Method("DELETE") - */ - public function deleteAction(Request $request, Flash $flash) - { - $form = $this->createDeleteForm($flash); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid()) { - $em = $this->getDoctrine()->getManager(); - $em->remove($flash); - $em->flush(); - } - - return $this->redirectToRoute('flash_index'); - } - - /** - * Creates a form to delete a flash entity. - * - * @param Flash $flash The flash entity - * - * @return \Symfony\Component\Form\Form The form - */ - private function createDeleteForm(Flash $flash) - { - return $this->createFormBuilder() - ->setAction($this->generateUrl('flash_delete', array('id' => $flash->getId()))) - ->setMethod('DELETE') - ->getForm() - ; - } -} diff --git a/src/CameraBundle/Controller/LensesController.php b/src/CameraBundle/Controller/LensesController.php deleted file mode 100644 index a24eca9..0000000 --- a/src/CameraBundle/Controller/LensesController.php +++ /dev/null @@ -1,143 +0,0 @@ -getDoctrine()->getManager(); - - $lenses = $em->getRepository('CameraBundle:Lenses')->findBy([], [ - 'received' => 'DESC', - 'brand' => 'ASC', - 'productLine' => 'ASC', - 'mount' => 'ASC', - 'minFocalLength' => 'ASC', - 'maxFStop' => 'ASC', - ]); - - return $this->render('lenses/index.html.twig', array( - 'lenses' => $lenses, - )); - } - - /** - * Creates a new lense entity. - * - * @Route("/new", name="lens_new") - * @Method({"GET", "POST"}) - */ - public function newAction(Request $request) - { - $lense = new Lenses(); - $form = $this->createForm('CameraBundle\Form\LensesType', $lense); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid()) { - $em = $this->getDoctrine()->getManager(); - $em->persist($lense); - $em->flush(); - - return $this->redirectToRoute('lens_show', array('id' => $lense->getId())); - } - - return $this->render('lenses/new.html.twig', array( - 'lense' => $lense, - 'form' => $form->createView(), - )); - } - - /** - * Finds and displays a lense entity. - * - * @Route("/{id}", name="lens_show") - * @Method("GET") - */ - public function showAction(Lenses $lense) - { - $deleteForm = $this->createDeleteForm($lense); - - return $this->render('lenses/show.html.twig', array( - 'lense' => $lense, - 'delete_form' => $deleteForm->createView(), - )); - } - - /** - * Displays a form to edit an existing lense entity. - * - * @Route("/{id}/edit", name="lens_edit") - * @Method({"GET", "POST"}) - */ - public function editAction(Request $request, Lenses $lense) - { - $deleteForm = $this->createDeleteForm($lense); - $editForm = $this->createForm('CameraBundle\Form\LensesType', $lense); - $editForm->handleRequest($request); - - if ($editForm->isSubmitted() && $editForm->isValid()) { - $this->getDoctrine()->getManager()->flush(); - - return $this->redirectToRoute('lens_edit', array('id' => $lense->getId())); - } - - return $this->render('lenses/edit.html.twig', array( - 'lense' => $lense, - 'edit_form' => $editForm->createView(), - 'delete_form' => $deleteForm->createView(), - )); - } - - /** - * Deletes a lense entity. - * - * @Route("/{id}", name="lens_delete") - * @Method("DELETE") - */ - public function deleteAction(Request $request, Lenses $lense) - { - $form = $this->createDeleteForm($lense); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid()) { - $em = $this->getDoctrine()->getManager(); - $em->remove($lense); - $em->flush(); - } - - return $this->redirectToRoute('lens_index'); - } - - /** - * Creates a form to delete a lense entity. - * - * @param Lenses $lense The lense entity - * - * @return \Symfony\Component\Form\Form The form - */ - private function createDeleteForm(Lenses $lense) - { - return $this->createFormBuilder() - ->setAction($this->generateUrl('lens_delete', array('id' => $lense->getId()))) - ->setMethod('DELETE') - ->getForm() - ; - } -} diff --git a/src/CameraBundle/Controller/PreviouslyOwnedCameraController.php b/src/CameraBundle/Controller/PreviouslyOwnedCameraController.php deleted file mode 100644 index 8a70c1c..0000000 --- a/src/CameraBundle/Controller/PreviouslyOwnedCameraController.php +++ /dev/null @@ -1,74 +0,0 @@ -getDoctrine()->getManager(); - - $previouslyOwnedCameras = $em->getRepository('CameraBundle:PreviouslyOwnedCamera')->findBy([], [ - 'brand' => 'ASC', - 'mount' => 'ASC', - 'model' => 'ASC', - ]); - - return $this->render('previouslyownedcamera/index.html.twig', array( - 'previouslyOwnedCameras' => $previouslyOwnedCameras, - )); - } - - /** - * Finds and displays a previouslyOwnedCamera entity. - * - * @Route("/{id}", name="previously-owned-camera_show") - * @Method("GET") - */ - public function showAction(PreviouslyOwnedCamera $previouslyOwnedCamera) - { - return $this->render('previouslyownedcamera/show.html.twig', array( - 'previouslyOwnedCamera' => $previouslyOwnedCamera, - )); - } - - /** - * Displays a form to edit an existing previouslyOwnedCamera entity. - * - * @Route("/{id}/edit", name="previously-owned-camera_edit") - * @Method({"GET", "POST"}) - */ - public function editAction(Request $request, PreviouslyOwnedCamera $previouslyOwnedCamera) - { - $editForm = $this->createForm('CameraBundle\Form\PreviouslyOwnedCameraType', $previouslyOwnedCamera); - $editForm->handleRequest($request); - - if ($editForm->isSubmitted() && $editForm->isValid()) { - $this->getDoctrine()->getManager()->flush(); - - return $this->redirectToRoute('previously-owned-camera_edit', array('id' => $previouslyOwnedCamera->getId())); - } - - return $this->render('previouslyownedcamera/edit.html.twig', array( - 'previouslyOwnedCamera' => $previouslyOwnedCamera, - 'edit_form' => $editForm->createView(), - )); - } -} diff --git a/src/CameraBundle/Controller/PreviouslyOwnedFlashController.php b/src/CameraBundle/Controller/PreviouslyOwnedFlashController.php deleted file mode 100644 index 03da89f..0000000 --- a/src/CameraBundle/Controller/PreviouslyOwnedFlashController.php +++ /dev/null @@ -1,99 +0,0 @@ -getDoctrine()->getManager(); - - $previouslyOwnedFlashes = $em->getRepository('CameraBundle:PreviouslyOwnedFlash')->findBy([], [ - 'brand' => 'ASC', - 'model' => 'ASC' - ]); - - return $this->render('previouslyownedflash/index.html.twig', array( - 'previouslyOwnedFlashes' => $previouslyOwnedFlashes, - )); - } - - /** - * Creates a new previouslyOwnedFlash entity. - * - * @Route("/new", name="previously-owned-flash_new") - * @Method({"GET", "POST"}) - */ - public function newAction(Request $request) - { - $previouslyOwnedFlash = new Previouslyownedflash(); - $form = $this->createForm('CameraBundle\Form\PreviouslyOwnedFlashType', $previouslyOwnedFlash); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid()) { - $em = $this->getDoctrine()->getManager(); - $em->persist($previouslyOwnedFlash); - $em->flush(); - - return $this->redirectToRoute('previously-owned-flash_show', array('id' => $previouslyOwnedFlash->getId())); - } - - return $this->render('previouslyownedflash/new.html.twig', array( - 'previouslyOwnedFlash' => $previouslyOwnedFlash, - 'form' => $form->createView(), - )); - } - - /** - * Finds and displays a previouslyOwnedFlash entity. - * - * @Route("/{id}", name="previously-owned-flash_show") - * @Method("GET") - */ - public function showAction(PreviouslyOwnedFlash $previouslyOwnedFlash) - { - return $this->render('previouslyownedflash/show.html.twig', array( - 'previouslyOwnedFlash' => $previouslyOwnedFlash - )); - } - - /** - * Displays a form to edit an existing previouslyOwnedFlash entity. - * - * @Route("/{id}/edit", name="previously-owned-flash_edit") - * @Method({"GET", "POST"}) - */ - public function editAction(Request $request, PreviouslyOwnedFlash $previouslyOwnedFlash) - { - $editForm = $this->createForm('CameraBundle\Form\PreviouslyOwnedFlashType', $previouslyOwnedFlash); - $editForm->handleRequest($request); - - if ($editForm->isSubmitted() && $editForm->isValid()) { - $this->getDoctrine()->getManager()->flush(); - - return $this->redirectToRoute('previously-owned-flash_edit', array('id' => $previouslyOwnedFlash->getId())); - } - - return $this->render('previouslyownedflash/edit.html.twig', array( - 'previouslyOwnedFlash' => $previouslyOwnedFlash, - 'edit_form' => $editForm->createView(), - )); - } -} diff --git a/src/CameraBundle/Controller/PreviouslyOwnedLensesController.php b/src/CameraBundle/Controller/PreviouslyOwnedLensesController.php deleted file mode 100644 index 6eb9c01..0000000 --- a/src/CameraBundle/Controller/PreviouslyOwnedLensesController.php +++ /dev/null @@ -1,76 +0,0 @@ -getDoctrine()->getManager(); - - $previouslyOwnedLenses = $em->getRepository('CameraBundle:PreviouslyOwnedLenses')->findBy([], [ - 'brand' => 'ASC', - 'productLine' => 'ASC', - 'mount' => 'ASC', - 'minFocalLength' => 'ASC', - 'maxFStop' => 'ASC', - ]); - - return $this->render('previouslyownedlenses/index.html.twig', array( - 'previouslyOwnedLenses' => $previouslyOwnedLenses, - )); - } - - /** - * Finds and displays a previouslyOwnedLense entity. - * - * @Route("/{id}", name="previously-owned-lens_show") - * @Method("GET") - */ - public function showAction(PreviouslyOwnedLenses $previouslyOwnedLense) - { - return $this->render('previouslyownedlenses/show.html.twig', array( - 'previouslyOwnedLense' => $previouslyOwnedLense, - )); - } - - /** - * Displays a form to edit an existing previouslyOwnedLense entity. - * - * @Route("/{id}/edit", name="previously-owned-lens_edit") - * @Method({"GET", "POST"}) - */ - public function editAction(Request $request, PreviouslyOwnedLenses $previouslyOwnedLense) - { - $editForm = $this->createForm('CameraBundle\Form\PreviouslyOwnedLensesType', $previouslyOwnedLense); - $editForm->handleRequest($request); - - if ($editForm->isSubmitted() && $editForm->isValid()) { - $this->getDoctrine()->getManager()->flush(); - - return $this->redirectToRoute('previously-owned-lens_edit', array('id' => $previouslyOwnedLense->getId())); - } - - return $this->render('previouslyownedlenses/edit.html.twig', array( - 'previouslyOwnedLense' => $previouslyOwnedLense, - 'edit_form' => $editForm->createView(), - )); - } -} diff --git a/src/CameraBundle/Entity/BatteryType.php b/src/CameraBundle/Entity/BatteryType.php deleted file mode 100644 index 063f99e..0000000 --- a/src/CameraBundle/Entity/BatteryType.php +++ /dev/null @@ -1,24 +0,0 @@ -id; - } - - /** - * Set type - * - * @param \CameraBundle\Entity\CameraType $type - * - * @return Camera - */ - public function setType(\CameraBundle\Entity\CameraType $type = null) - { - $this->type = $type; - - return $this; - } - - /** - * Get type - * - * @return \CameraBundle\Entity\CameraType - */ - public function getType() - { - return $this->type; - } - - /** - * Set brand - * - * @param string $brand - * - * @return Camera - */ - public function setBrand($brand) - { - $this->brand = $brand; - - return $this; - } - - /** - * Get brand - * - * @return string - */ - public function getBrand() - { - return $this->brand; - } - - /** - * Set mount - * - * @param string $mount - * - * @return Camera - */ - public function setMount($mount) - { - $this->mount = $mount; - - return $this; - } - - /** - * Get mount - * - * @return string - */ - public function getMount() - { - return $this->mount; - } - - /** - * Set model - * - * @param string $model - * - * @return Camera - */ - public function setModel($model) - { - $this->model = $model; - - return $this; - } - - /** - * Get model - * - * @return string - */ - public function getModel() - { - return $this->model; - } - - /** - * Set isDigital - * - * @param boolean $isDigital - * - * @return Camera - */ - public function setIsDigital($isDigital) - { - $this->isDigital = $isDigital; - - return $this; - } - - /** - * Get isDigital - * - * @return boolean - */ - public function getIsDigital() - { - return $this->isDigital; - } - - /** - * Set cropFactor - * - * @param string $cropFactor - * - * @return Camera - */ - public function setCropFactor($cropFactor) - { - $this->cropFactor = $cropFactor; - - return $this; - } - - /** - * Get cropFactor - * - * @return string - */ - public function getCropFactor() - { - return $this->cropFactor; - } - - /** - * Set isWorking - * - * @param boolean $isWorking - * - * @return Camera - */ - public function setIsWorking($isWorking) - { - $this->isWorking = $isWorking; - - return $this; - } - - /** - * Get isWorking - * - * @return boolean - */ - public function getIsWorking() - { - return $this->isWorking; - } - - /** - * Set notes - * - * @param string $notes - * - * @return Camera - */ - public function setNotes($notes) - { - $this->notes = $notes; - - return $this; - } - - /** - * Get notes - * - * @return string - */ - public function getNotes() - { - return $this->notes; - } - - /** - * Set serial - * - * @param string $serial - * - * @return Camera - */ - public function setSerial($serial) - { - $this->serial = $serial; - - return $this; - } - - /** - * Get serial - * - * @return string - */ - public function getSerial() - { - return $this->serial; - } - - /** - * Set formerlyOwned - * - * @param boolean $formerlyOwned - * - * @return Camera - */ - public function setFormerlyOwned($formerlyOwned) - { - $this->formerlyOwned = $formerlyOwned; - - return $this; - } - - /** - * Get formerlyOwned - * - * @return boolean - */ - public function getFormerlyOwned() - { - return $this->formerlyOwned; - } - - /** - * Set batteryType - * - * @param string $batteryType - * - * @return Camera - */ - public function setBatteryType($batteryType) - { - $this->batteryType = $batteryType; - - return $this; - } - - /** - * Get batteryType - * - * @return string - */ - public function getBatteryType() - { - return $this->batteryType; - } - - /** - * Set filmFormat - * - * @param string $filmFormat - * - * @return Camera - */ - public function setFilmFormat($filmFormat) - { - $this->filmFormat = $filmFormat; - - return $this; - } - - /** - * Get filmFormat - * - * @return string - */ - public function getFilmFormat() - { - return $this->filmFormat; - } - - /** - * Set received - * - * @param boolean $received - * - * @return Camera - */ - public function setReceived($received) - { - $this->received = $received; - - return $this; - } - - /** - * Get received - * - * @return boolean - */ - public function getReceived() - { - return $this->received; - } - -} \ No newline at end of file diff --git a/src/CameraBundle/Entity/CameraType.php b/src/CameraBundle/Entity/CameraType.php deleted file mode 100644 index 08f3146..0000000 --- a/src/CameraBundle/Entity/CameraType.php +++ /dev/null @@ -1,78 +0,0 @@ -type; - } - - - - /** - * Get id - * - * @return integer - */ - public function getId() - { - return $this->id; - } - - /** - * Set type - * - * @param string $type - * - * @return CameraType - */ - public function setType($type) - { - $this->type = $type; - - return $this; - } - - /** - * Get type - * - * @return string - */ - public function getType() - { - return $this->type; - } -} diff --git a/src/CameraBundle/Entity/Flash.php b/src/CameraBundle/Entity/Flash.php deleted file mode 100644 index a1ac00b..0000000 --- a/src/CameraBundle/Entity/Flash.php +++ /dev/null @@ -1,41 +0,0 @@ -id; - } - - /** - * Set brand - * - * @param string $brand - * - * @return Flash - */ - public function setBrand($brand) - { - $this->brand = $brand; - - return $this; - } - - /** - * Get brand - * - * @return string - */ - public function getBrand() - { - return $this->brand; - } - - /** - * Set model - * - * @param string $model - * - * @return Flash - */ - public function setModel($model) - { - $this->model = $model; - - return $this; - } - - /** - * Get model - * - * @return string - */ - public function getModel() - { - return $this->model; - } - - /** - * Set isAutoFlash - * - * @param boolean $isAutoFlash - * - * @return Flash - */ - public function setIsAutoFlash($isAutoFlash) - { - $this->isAutoFlash = $isAutoFlash; - - return $this; - } - - /** - * Get isAutoFlash - * - * @return boolean - */ - public function getIsAutoFlash() - { - return $this->isAutoFlash; - } - - /** - * Set isTtl - * - * @param boolean $isTtl - * - * @return Flash - */ - public function setIsTtl($isTtl) - { - $this->isTtl = $isTtl; - - return $this; - } - - /** - * Get isTtl - * - * @return boolean - */ - public function getIsTtl() - { - return $this->isTtl; - } - - /** - * Set ttlType - * - * @param string $ttlType - * - * @return Flash - */ - public function setTtlType($ttlType) - { - $this->ttlType = $ttlType; - - return $this; - } - - /** - * Get ttlType - * - * @return string - */ - public function getTtlType() - { - return $this->ttlType; - } - - /** - * Set isPTtl - * - * @param boolean $isPTtl - * - * @return Flash - */ - public function setIsPTtl($isPTtl) - { - $this->isPTtl = $isPTtl; - - return $this; - } - - /** - * Get isPTtl - * - * @return boolean - */ - public function getIsPTtl() - { - return $this->isPTtl; - } - - /** - * Set pTtlType - * - * @param string $pTtlType - * - * @return Flash - */ - public function setPTtlType($pTtlType) - { - $this->pTtlType = $pTtlType; - - return $this; - } - - /** - * Get pTtlType - * - * @return string - */ - public function getPTtlType() - { - return $this->pTtlType; - } - - /** - * Set guideNumber - * - * @param string $guideNumber - * - * @return Flash - */ - public function setGuideNumber($guideNumber) - { - $this->guideNumber = $guideNumber; - - return $this; - } - - /** - * Get guideNumber - * - * @return string - */ - public function getGuideNumber() - { - return $this->guideNumber; - } - - /** - * Set batteries - * - * @param string $batteries - * - * @return Flash - */ - public function setBatteries($batteries) - { - $this->batteries = $batteries; - - return $this; - } - - /** - * Get batteries - * - * @return string - */ - public function getBatteries() - { - return $this->batteries; - } - - /** - * Set notes - * - * @param string $notes - * - * @return Flash - */ - public function setNotes($notes) - { - $this->notes = $notes; - - return $this; - } - - /** - * Get notes - * - * @return string - */ - public function getNotes() - { - return $this->notes; - } - - /** - * Set serial - * - * @param string $serial - * - * @return Flash - */ - public function setSerial($serial) - { - $this->serial = $serial; - - return $this; - } - - /** - * Get serial - * - * @return string - */ - public function getSerial() - { - return $this->serial; - } - - /** - * Set formerlyOwned - * - * @param boolean $formerlyOwned - * - * @return Flash - */ - public function setFormerlyOwned($formerlyOwned) - { - $this->formerlyOwned = $formerlyOwned; - - return $this; - } - - /** - * Get formerlyOwned - * - * @return boolean - */ - public function getFormerlyOwned() - { - return $this->formerlyOwned; - } - - /** - * Set received - * - * @param boolean $received - * - * @return Flash - */ - public function setReceived($received) - { - $this->received = $received; - - return $this; - } - - /** - * Get received - * - * @return boolean - */ - public function getReceived() - { - return $this->received; - } -} \ No newline at end of file diff --git a/src/CameraBundle/Entity/LensTrait.php b/src/CameraBundle/Entity/LensTrait.php deleted file mode 100644 index 68d3c66..0000000 --- a/src/CameraBundle/Entity/LensTrait.php +++ /dev/null @@ -1,601 +0,0 @@ -id; - } - - /** - * Set brand - * - * @param string $brand - * - * @return Lenses - */ - public function setBrand($brand) - { - $this->brand = $brand; - - return $this; - } - - /** - * Get brand - * - * @return string - */ - public function getBrand() - { - return $this->brand; - } - - /** - * Set coatings - * - * @param string $coatings - * - * @return Lenses - */ - public function setCoatings($coatings) - { - $this->coatings = $coatings; - - return $this; - } - - /** - * Get coatings - * - * @return string - */ - public function getCoatings() - { - return $this->coatings; - } - - /** - * Set productLine - * - * @param string $productLine - * - * @return Lenses - */ - public function setProductLine($productLine) - { - $this->productLine = $productLine; - - return $this; - } - - /** - * Get productLine - * - * @return string - */ - public function getProductLine() - { - return $this->productLine; - } - - /** - * Set model - * - * @param string $model - * - * @return Lenses - */ - public function setModel($model) - { - $this->model = $model; - - return $this; - } - - /** - * Get model - * - * @return string - */ - public function getModel() - { - return $this->model; - } - - /** - * Set minFStop - * - * @param string $minFStop - * - * @return Lenses - */ - public function setMinFStop($minFStop) - { - $this->minFStop = $minFStop; - - return $this; - } - - /** - * Get minFStop - * - * @return string - */ - public function getMinFStop() - { - return $this->minFStop; - } - - /** - * Set maxFStop - * - * @param float $maxFStop - * - * @return Lenses - */ - public function setMaxFStop($maxFStop) - { - $this->maxFStop = $maxFStop; - - return $this; - } - - /** - * Get maxFStop - * - * @return float - */ - public function getMaxFStop() - { - return $this->maxFStop; - } - - /** - * Set minFocalLength - * - * @param integer $minFocalLength - * - * @return Lenses - */ - public function setMinFocalLength($minFocalLength) - { - $this->minFocalLength = $minFocalLength; - - return $this; - } - - /** - * Get minFocalLength - * - * @return integer - */ - public function getMinFocalLength() - { - return $this->minFocalLength; - } - - /** - * Set maxFocalLength - * - * @param integer $maxFocalLength - * - * @return Lenses - */ - public function setMaxFocalLength($maxFocalLength) - { - $this->maxFocalLength = $maxFocalLength; - - return $this; - } - - /** - * Get maxFocalLength - * - * @return integer - */ - public function getMaxFocalLength() - { - return $this->maxFocalLength; - } - - /** - * Set serial - * - * @param string $serial - * - * @return Lenses - */ - public function setSerial($serial) - { - $this->serial = $serial; - - return $this; - } - - /** - * Get serial - * - * @return string - */ - public function getSerial() - { - return $this->serial; - } - - /** - * Set notes - * - * @param string $notes - * - * @return Lenses - */ - public function setNotes($notes) - { - $this->notes = $notes; - - return $this; - } - - /** - * Get notes - * - * @return string - */ - public function getNotes() - { - return $this->notes; - } - - /** - * Set mount - * - * @param string $mount - * - * @return Lenses - */ - public function setMount($mount) - { - $this->mount = $mount; - - return $this; - } - - /** - * Get mount - * - * @return string - */ - public function getMount() - { - return $this->mount; - } - - /** - * Set received - * - * @param boolean $received - * - * @return Lenses - */ - public function setReceived($received) - { - $this->received = $received; - - return $this; - } - - /** - * Get received - * - * @return boolean - */ - public function getReceived() - { - return $this->received; - } - - /** - * Set formerlyOwned - * - * @param boolean $formerlyOwned - * - * @return Lenses - */ - public function setFormerlyOwned($formerlyOwned) - { - $this->formerlyOwned = $formerlyOwned; - - return $this; - } - - /** - * Get formerlyOwned - * - * @return boolean - */ - public function getFormerlyOwned() - { - return $this->formerlyOwned; - } - - /** - * Set frontFilterSize - * - * @param string $frontFilterSize - * - * @return Lenses - */ - public function setFrontFilterSize($frontFilterSize) - { - $this->frontFilterSize = $frontFilterSize; - - return $this; - } - - /** - * Get frontFilterSize - * - * @return string - */ - public function getFrontFilterSize() - { - return $this->frontFilterSize; - } - - /** - * Set rearFilterSize - * - * @param string $rearFilterSize - * - * @return Lenses - */ - public function setRearFilterSize($rearFilterSize) - { - $this->rearFilterSize = $rearFilterSize; - - return $this; - } - - /** - * Get rearFilterSize - * - * @return string - */ - public function getRearFilterSize() - { - return $this->rearFilterSize; - } - - /** - * Set isTeleconverter - * - * @param boolean $isTeleconverter - * - * @return Lenses - */ - public function setIsTeleconverter($isTeleconverter) - { - $this->isTeleconverter = $isTeleconverter; - - return $this; - } - - /** - * Get isTeleconverter - * - * @return boolean - */ - public function getIsTeleconverter() - { - return $this->isTeleconverter; - } - - /** - * Set designElements - * - * @param integer $designElements - * - * @return Lenses - */ - public function setDesignElements($designElements) - { - $this->designElements = $designElements; - - return $this; - } - - /** - * Get designElements - * - * @return integer - */ - public function getDesignElements() - { - return $this->designElements; - } - - /** - * Set designGroups - * - * @param integer $designGroups - * - * @return Lenses - */ - public function setDesignGroups($designGroups) - { - $this->designGroups = $designGroups; - - return $this; - } - - /** - * Get designGroups - * - * @return integer - */ - public function getDesignGroups() - { - return $this->designGroups; - } - - /** - * Set apertureBlades - * - * @param integer $apertureBlades - * - * @return Lenses - */ - public function setApertureBlades($apertureBlades) - { - $this->apertureBlades = $apertureBlades; - - return $this; - } - - /** - * Get apertureBlades - * - * @return integer - */ - public function getApertureBlades() - { - return $this->apertureBlades; - } -} \ No newline at end of file diff --git a/src/CameraBundle/Entity/Lenses.php b/src/CameraBundle/Entity/Lenses.php deleted file mode 100644 index 3457f4b..0000000 --- a/src/CameraBundle/Entity/Lenses.php +++ /dev/null @@ -1,40 +0,0 @@ -purchasePrice = $purchasePrice; - - return $this; - } - - /** - * Get purchasePrice - * - * @return string - */ - public function getPurchasePrice() - { - if (empty($this->purchasePrice)) { - return 0; - } - - return $this->purchasePrice; - } -} \ No newline at end of file diff --git a/src/Controller/CameraController.php b/src/Controller/CameraController.php new file mode 100644 index 0000000..3f148ca --- /dev/null +++ b/src/Controller/CameraController.php @@ -0,0 +1,141 @@ +getDoctrine()->getManager(); + + $cameras = $em->getRepository('CameraBundle:Camera')->findBy([], [ + 'received' => 'DESC', + 'brand' => 'ASC', + 'mount' => 'ASC', + 'model' => 'ASC', + ]); + + return $this->render('camera/index.html.twig', array( + 'cameras' => $cameras, + )); + } + + /** + * Creates a new camera entity. + * + * @Route("/new", name="camera_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $camera = new Camera(); + $form = $this->createForm('CameraBundle\Form\CameraType', $camera); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($camera); + $em->flush(); + + return $this->redirectToRoute('camera_show', array('id' => $camera->getId())); + } + + return $this->render('camera/new.html.twig', array( + 'camera' => $camera, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a camera entity. + * + * @Route("/{id}", name="camera_show") + * @Method("GET") + */ + public function showAction(Camera $camera) + { + $deleteForm = $this->createDeleteForm($camera); + + return $this->render('camera/show.html.twig', array( + 'camera' => $camera, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing camera entity. + * + * @Route("/{id}/edit", name="camera_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Camera $camera) + { + $deleteForm = $this->createDeleteForm($camera); + $editForm = $this->createForm('CameraBundle\Form\CameraType', $camera); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('camera_edit', array('id' => $camera->getId())); + } + + return $this->render('camera/edit.html.twig', array( + 'camera' => $camera, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a camera entity. + * + * @Route("/{id}", name="camera_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Camera $camera) + { + $form = $this->createDeleteForm($camera); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($camera); + $em->flush(); + } + + return $this->redirectToRoute('camera_index'); + } + + /** + * Creates a form to delete a camera entity. + * + * @param Camera $camera The camera entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Camera $camera) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('camera_delete', array('id' => $camera->getId()))) + ->setMethod('DELETE') + ->getForm(); + } +} diff --git a/src/Controller/CameraTypeController.php b/src/Controller/CameraTypeController.php new file mode 100644 index 0000000..689d3a2 --- /dev/null +++ b/src/Controller/CameraTypeController.php @@ -0,0 +1,138 @@ +getDoctrine()->getManager(); + + $cameraTypes = $em->getRepository('CameraBundle:CameraType')->findBy([], [ + 'type' => 'ASC' + ]); + + return $this->render('cameratype/index.html.twig', array( + 'cameraTypes' => $cameraTypes, + )); + } + + /** + * Creates a new cameraType entity. + * + * @Route("/new", name="camera-type_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $cameraType = new Cameratype(); + $form = $this->createForm('CameraBundle\Form\CameraTypeType', $cameraType); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($cameraType); + $em->flush(); + + return $this->redirectToRoute('camera-type_show', array('id' => $cameraType->getId())); + } + + return $this->render('cameratype/new.html.twig', array( + 'cameraType' => $cameraType, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a cameraType entity. + * + * @Route("/{id}", name="camera-type_show") + * @Method("GET") + */ + public function showAction(CameraType $cameraType) + { + $deleteForm = $this->createDeleteForm($cameraType); + + return $this->render('cameratype/show.html.twig', array( + 'cameraType' => $cameraType, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing cameraType entity. + * + * @Route("/{id}/edit", name="camera-type_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, CameraType $cameraType) + { + $deleteForm = $this->createDeleteForm($cameraType); + $editForm = $this->createForm('CameraBundle\Form\CameraTypeType', $cameraType); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('camera-type_edit', array('id' => $cameraType->getId())); + } + + return $this->render('cameratype/edit.html.twig', array( + 'cameraType' => $cameraType, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a cameraType entity. + * + * @Route("/{id}", name="camera-type_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, CameraType $cameraType) + { + $form = $this->createDeleteForm($cameraType); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($cameraType); + $em->flush(); + } + + return $this->redirectToRoute('camera-type_index'); + } + + /** + * Creates a form to delete a cameraType entity. + * + * @param CameraType $cameraType The cameraType entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(CameraType $cameraType) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('camera-type_delete', array('id' => $cameraType->getId()))) + ->setMethod('DELETE') + ->getForm(); + } +} diff --git a/src/Controller/DefaultController.php b/src/Controller/DefaultController.php new file mode 100644 index 0000000..c5d0d00 --- /dev/null +++ b/src/Controller/DefaultController.php @@ -0,0 +1,21 @@ +render('default/index.html.twig', [ + 'base_dir' => realpath($this->getParameter('kernel.project_dir')) . DIRECTORY_SEPARATOR, + ]); + } +} diff --git a/src/Controller/FlashController.php b/src/Controller/FlashController.php new file mode 100644 index 0000000..95ddceb --- /dev/null +++ b/src/Controller/FlashController.php @@ -0,0 +1,140 @@ +getDoctrine()->getManager(); + + $flashes = $em->getRepository('CameraBundle:Flash')->findBy([], [ + 'received' => 'DESC', + 'brand' => 'ASC', + 'model' => 'ASC' + ]); + + return $this->render('flash/index.html.twig', array( + 'flashes' => $flashes, + )); + } + + /** + * Creates a new flash entity. + * + * @Route("/new", name="flash_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $flash = new Flash(); + $form = $this->createForm('CameraBundle\Form\FlashType', $flash); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($flash); + $em->flush(); + + return $this->redirectToRoute('flash_show', array('id' => $flash->getId())); + } + + return $this->render('flash/new.html.twig', array( + 'flash' => $flash, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a flash entity. + * + * @Route("/{id}", name="flash_show") + * @Method("GET") + */ + public function showAction(Flash $flash) + { + $deleteForm = $this->createDeleteForm($flash); + + return $this->render('flash/show.html.twig', array( + 'flash' => $flash, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing flash entity. + * + * @Route("/{id}/edit", name="flash_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Flash $flash) + { + $deleteForm = $this->createDeleteForm($flash); + $editForm = $this->createForm('CameraBundle\Form\FlashType', $flash); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('flash_edit', array('id' => $flash->getId())); + } + + return $this->render('flash/edit.html.twig', array( + 'flash' => $flash, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a flash entity. + * + * @Route("/{id}", name="flash_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Flash $flash) + { + $form = $this->createDeleteForm($flash); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($flash); + $em->flush(); + } + + return $this->redirectToRoute('flash_index'); + } + + /** + * Creates a form to delete a flash entity. + * + * @param Flash $flash The flash entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Flash $flash) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('flash_delete', array('id' => $flash->getId()))) + ->setMethod('DELETE') + ->getForm(); + } +} diff --git a/src/Controller/LensesController.php b/src/Controller/LensesController.php new file mode 100644 index 0000000..8edbc5e --- /dev/null +++ b/src/Controller/LensesController.php @@ -0,0 +1,143 @@ +getDoctrine()->getManager(); + + $lenses = $em->getRepository('CameraBundle:Lenses')->findBy([], [ + 'received' => 'DESC', + 'brand' => 'ASC', + 'productLine' => 'ASC', + 'mount' => 'ASC', + 'minFocalLength' => 'ASC', + 'maxFStop' => 'ASC', + ]); + + return $this->render('lenses/index.html.twig', array( + 'lenses' => $lenses, + )); + } + + /** + * Creates a new lense entity. + * + * @Route("/new", name="lens_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $lense = new Lenses(); + $form = $this->createForm('CameraBundle\Form\LensesType', $lense); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($lense); + $em->flush(); + + return $this->redirectToRoute('lens_show', array('id' => $lense->getId())); + } + + return $this->render('lenses/new.html.twig', array( + 'lense' => $lense, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a lense entity. + * + * @Route("/{id}", name="lens_show") + * @Method("GET") + */ + public function showAction(Lenses $lense) + { + $deleteForm = $this->createDeleteForm($lense); + + return $this->render('lenses/show.html.twig', array( + 'lense' => $lense, + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Displays a form to edit an existing lense entity. + * + * @Route("/{id}/edit", name="lens_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, Lenses $lense) + { + $deleteForm = $this->createDeleteForm($lense); + $editForm = $this->createForm('CameraBundle\Form\LensesType', $lense); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('lens_edit', array('id' => $lense->getId())); + } + + return $this->render('lenses/edit.html.twig', array( + 'lense' => $lense, + 'edit_form' => $editForm->createView(), + 'delete_form' => $deleteForm->createView(), + )); + } + + /** + * Deletes a lense entity. + * + * @Route("/{id}", name="lens_delete") + * @Method("DELETE") + */ + public function deleteAction(Request $request, Lenses $lense) + { + $form = $this->createDeleteForm($lense); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->remove($lense); + $em->flush(); + } + + return $this->redirectToRoute('lens_index'); + } + + /** + * Creates a form to delete a lense entity. + * + * @param Lenses $lense The lense entity + * + * @return \Symfony\Component\Form\Form The form + */ + private function createDeleteForm(Lenses $lense) + { + return $this->createFormBuilder() + ->setAction($this->generateUrl('lens_delete', array('id' => $lense->getId()))) + ->setMethod('DELETE') + ->getForm(); + } +} diff --git a/src/Controller/PreviouslyOwnedCameraController.php b/src/Controller/PreviouslyOwnedCameraController.php new file mode 100644 index 0000000..91d9fe4 --- /dev/null +++ b/src/Controller/PreviouslyOwnedCameraController.php @@ -0,0 +1,74 @@ +getDoctrine()->getManager(); + + $previouslyOwnedCameras = $em->getRepository('CameraBundle:PreviouslyOwnedCamera')->findBy([], [ + 'brand' => 'ASC', + 'mount' => 'ASC', + 'model' => 'ASC', + ]); + + return $this->render('previouslyownedcamera/index.html.twig', array( + 'previouslyOwnedCameras' => $previouslyOwnedCameras, + )); + } + + /** + * Finds and displays a previouslyOwnedCamera entity. + * + * @Route("/{id}", name="previously-owned-camera_show") + * @Method("GET") + */ + public function showAction(PreviouslyOwnedCamera $previouslyOwnedCamera) + { + return $this->render('previouslyownedcamera/show.html.twig', array( + 'previouslyOwnedCamera' => $previouslyOwnedCamera, + )); + } + + /** + * Displays a form to edit an existing previouslyOwnedCamera entity. + * + * @Route("/{id}/edit", name="previously-owned-camera_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, PreviouslyOwnedCamera $previouslyOwnedCamera) + { + $editForm = $this->createForm('CameraBundle\Form\PreviouslyOwnedCameraType', $previouslyOwnedCamera); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('previously-owned-camera_edit', array('id' => $previouslyOwnedCamera->getId())); + } + + return $this->render('previouslyownedcamera/edit.html.twig', array( + 'previouslyOwnedCamera' => $previouslyOwnedCamera, + 'edit_form' => $editForm->createView(), + )); + } +} diff --git a/src/Controller/PreviouslyOwnedFlashController.php b/src/Controller/PreviouslyOwnedFlashController.php new file mode 100644 index 0000000..815f069 --- /dev/null +++ b/src/Controller/PreviouslyOwnedFlashController.php @@ -0,0 +1,99 @@ +getDoctrine()->getManager(); + + $previouslyOwnedFlashes = $em->getRepository('CameraBundle:PreviouslyOwnedFlash')->findBy([], [ + 'brand' => 'ASC', + 'model' => 'ASC' + ]); + + return $this->render('previouslyownedflash/index.html.twig', array( + 'previouslyOwnedFlashes' => $previouslyOwnedFlashes, + )); + } + + /** + * Creates a new previouslyOwnedFlash entity. + * + * @Route("/new", name="previously-owned-flash_new") + * @Method({"GET", "POST"}) + */ + public function newAction(Request $request) + { + $previouslyOwnedFlash = new Previouslyownedflash(); + $form = $this->createForm('CameraBundle\Form\PreviouslyOwnedFlashType', $previouslyOwnedFlash); + $form->handleRequest($request); + + if ($form->isSubmitted() && $form->isValid()) { + $em = $this->getDoctrine()->getManager(); + $em->persist($previouslyOwnedFlash); + $em->flush(); + + return $this->redirectToRoute('previously-owned-flash_show', array('id' => $previouslyOwnedFlash->getId())); + } + + return $this->render('previouslyownedflash/new.html.twig', array( + 'previouslyOwnedFlash' => $previouslyOwnedFlash, + 'form' => $form->createView(), + )); + } + + /** + * Finds and displays a previouslyOwnedFlash entity. + * + * @Route("/{id}", name="previously-owned-flash_show") + * @Method("GET") + */ + public function showAction(PreviouslyOwnedFlash $previouslyOwnedFlash) + { + return $this->render('previouslyownedflash/show.html.twig', array( + 'previouslyOwnedFlash' => $previouslyOwnedFlash + )); + } + + /** + * Displays a form to edit an existing previouslyOwnedFlash entity. + * + * @Route("/{id}/edit", name="previously-owned-flash_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, PreviouslyOwnedFlash $previouslyOwnedFlash) + { + $editForm = $this->createForm('CameraBundle\Form\PreviouslyOwnedFlashType', $previouslyOwnedFlash); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('previously-owned-flash_edit', array('id' => $previouslyOwnedFlash->getId())); + } + + return $this->render('previouslyownedflash/edit.html.twig', array( + 'previouslyOwnedFlash' => $previouslyOwnedFlash, + 'edit_form' => $editForm->createView(), + )); + } +} diff --git a/src/Controller/PreviouslyOwnedLensesController.php b/src/Controller/PreviouslyOwnedLensesController.php new file mode 100644 index 0000000..268178b --- /dev/null +++ b/src/Controller/PreviouslyOwnedLensesController.php @@ -0,0 +1,76 @@ +getDoctrine()->getManager(); + + $previouslyOwnedLenses = $em->getRepository('CameraBundle:PreviouslyOwnedLenses')->findBy([], [ + 'brand' => 'ASC', + 'productLine' => 'ASC', + 'mount' => 'ASC', + 'minFocalLength' => 'ASC', + 'maxFStop' => 'ASC', + ]); + + return $this->render('previouslyownedlenses/index.html.twig', array( + 'previouslyOwnedLenses' => $previouslyOwnedLenses, + )); + } + + /** + * Finds and displays a previouslyOwnedLense entity. + * + * @Route("/{id}", name="previously-owned-lens_show") + * @Method("GET") + */ + public function showAction(PreviouslyOwnedLenses $previouslyOwnedLense) + { + return $this->render('previouslyownedlenses/show.html.twig', array( + 'previouslyOwnedLense' => $previouslyOwnedLense, + )); + } + + /** + * Displays a form to edit an existing previouslyOwnedLense entity. + * + * @Route("/{id}/edit", name="previously-owned-lens_edit") + * @Method({"GET", "POST"}) + */ + public function editAction(Request $request, PreviouslyOwnedLenses $previouslyOwnedLense) + { + $editForm = $this->createForm('CameraBundle\Form\PreviouslyOwnedLensesType', $previouslyOwnedLense); + $editForm->handleRequest($request); + + if ($editForm->isSubmitted() && $editForm->isValid()) { + $this->getDoctrine()->getManager()->flush(); + + return $this->redirectToRoute('previously-owned-lens_edit', array('id' => $previouslyOwnedLense->getId())); + } + + return $this->render('previouslyownedlenses/edit.html.twig', array( + 'previouslyOwnedLense' => $previouslyOwnedLense, + 'edit_form' => $editForm->createView(), + )); + } +} diff --git a/var/cache/.gitkeep b/src/Entity/.gitignore old mode 100755 new mode 100644 similarity index 100% rename from var/cache/.gitkeep rename to src/Entity/.gitignore diff --git a/src/Entity/BatteryType.php b/src/Entity/BatteryType.php new file mode 100644 index 0000000..8c864e4 --- /dev/null +++ b/src/Entity/BatteryType.php @@ -0,0 +1,24 @@ +id; + } + + /** + * Set type + * + * @param \CameraBundle\Entity\CameraType $type + * + * @return Camera + */ + public function setType(\CameraBundle\Entity\CameraType $type = null) + { + $this->type = $type; + + return $this; + } + + /** + * Get type + * + * @return \CameraBundle\Entity\CameraType + */ + public function getType() + { + return $this->type; + } + + /** + * Set brand + * + * @param string $brand + * + * @return Camera + */ + public function setBrand($brand) + { + $this->brand = $brand; + + return $this; + } + + /** + * Get brand + * + * @return string + */ + public function getBrand() + { + return $this->brand; + } + + /** + * Set mount + * + * @param string $mount + * + * @return Camera + */ + public function setMount($mount) + { + $this->mount = $mount; + + return $this; + } + + /** + * Get mount + * + * @return string + */ + public function getMount() + { + return $this->mount; + } + + /** + * Set model + * + * @param string $model + * + * @return Camera + */ + public function setModel($model) + { + $this->model = $model; + + return $this; + } + + /** + * Get model + * + * @return string + */ + public function getModel() + { + return $this->model; + } + + /** + * Set isDigital + * + * @param boolean $isDigital + * + * @return Camera + */ + public function setIsDigital($isDigital) + { + $this->isDigital = $isDigital; + + return $this; + } + + /** + * Get isDigital + * + * @return boolean + */ + public function getIsDigital() + { + return $this->isDigital; + } + + /** + * Set cropFactor + * + * @param string $cropFactor + * + * @return Camera + */ + public function setCropFactor($cropFactor) + { + $this->cropFactor = $cropFactor; + + return $this; + } + + /** + * Get cropFactor + * + * @return string + */ + public function getCropFactor() + { + return $this->cropFactor; + } + + /** + * Set isWorking + * + * @param boolean $isWorking + * + * @return Camera + */ + public function setIsWorking($isWorking) + { + $this->isWorking = $isWorking; + + return $this; + } + + /** + * Get isWorking + * + * @return boolean + */ + public function getIsWorking() + { + return $this->isWorking; + } + + /** + * Set notes + * + * @param string $notes + * + * @return Camera + */ + public function setNotes($notes) + { + $this->notes = $notes; + + return $this; + } + + /** + * Get notes + * + * @return string + */ + public function getNotes() + { + return $this->notes; + } + + /** + * Set serial + * + * @param string $serial + * + * @return Camera + */ + public function setSerial($serial) + { + $this->serial = $serial; + + return $this; + } + + /** + * Get serial + * + * @return string + */ + public function getSerial() + { + return $this->serial; + } + + /** + * Set formerlyOwned + * + * @param boolean $formerlyOwned + * + * @return Camera + */ + public function setFormerlyOwned($formerlyOwned) + { + $this->formerlyOwned = $formerlyOwned; + + return $this; + } + + /** + * Get formerlyOwned + * + * @return boolean + */ + public function getFormerlyOwned() + { + return $this->formerlyOwned; + } + + /** + * Set batteryType + * + * @param string $batteryType + * + * @return Camera + */ + public function setBatteryType($batteryType) + { + $this->batteryType = $batteryType; + + return $this; + } + + /** + * Get batteryType + * + * @return string + */ + public function getBatteryType() + { + return $this->batteryType; + } + + /** + * Set filmFormat + * + * @param string $filmFormat + * + * @return Camera + */ + public function setFilmFormat($filmFormat) + { + $this->filmFormat = $filmFormat; + + return $this; + } + + /** + * Get filmFormat + * + * @return string + */ + public function getFilmFormat() + { + return $this->filmFormat; + } + + /** + * Set received + * + * @param boolean $received + * + * @return Camera + */ + public function setReceived($received) + { + $this->received = $received; + + return $this; + } + + /** + * Get received + * + * @return boolean + */ + public function getReceived() + { + return $this->received; + } + +} diff --git a/src/Entity/CameraType.php b/src/Entity/CameraType.php new file mode 100644 index 0000000..c0cd280 --- /dev/null +++ b/src/Entity/CameraType.php @@ -0,0 +1,77 @@ +type; + } + + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set type + * + * @param string $type + * + * @return CameraType + */ + public function setType($type) + { + $this->type = $type; + + return $this; + } + + /** + * Get type + * + * @return string + */ + public function getType() + { + return $this->type; + } +} diff --git a/src/Entity/Flash.php b/src/Entity/Flash.php new file mode 100644 index 0000000..3cdb868 --- /dev/null +++ b/src/Entity/Flash.php @@ -0,0 +1,41 @@ +id; + } + + /** + * Set brand + * + * @param string $brand + * + * @return Flash + */ + public function setBrand($brand) + { + $this->brand = $brand; + + return $this; + } + + /** + * Get brand + * + * @return string + */ + public function getBrand() + { + return $this->brand; + } + + /** + * Set model + * + * @param string $model + * + * @return Flash + */ + public function setModel($model) + { + $this->model = $model; + + return $this; + } + + /** + * Get model + * + * @return string + */ + public function getModel() + { + return $this->model; + } + + /** + * Set isAutoFlash + * + * @param boolean $isAutoFlash + * + * @return Flash + */ + public function setIsAutoFlash($isAutoFlash) + { + $this->isAutoFlash = $isAutoFlash; + + return $this; + } + + /** + * Get isAutoFlash + * + * @return boolean + */ + public function getIsAutoFlash() + { + return $this->isAutoFlash; + } + + /** + * Set isTtl + * + * @param boolean $isTtl + * + * @return Flash + */ + public function setIsTtl($isTtl) + { + $this->isTtl = $isTtl; + + return $this; + } + + /** + * Get isTtl + * + * @return boolean + */ + public function getIsTtl() + { + return $this->isTtl; + } + + /** + * Set ttlType + * + * @param string $ttlType + * + * @return Flash + */ + public function setTtlType($ttlType) + { + $this->ttlType = $ttlType; + + return $this; + } + + /** + * Get ttlType + * + * @return string + */ + public function getTtlType() + { + return $this->ttlType; + } + + /** + * Set isPTtl + * + * @param boolean $isPTtl + * + * @return Flash + */ + public function setIsPTtl($isPTtl) + { + $this->isPTtl = $isPTtl; + + return $this; + } + + /** + * Get isPTtl + * + * @return boolean + */ + public function getIsPTtl() + { + return $this->isPTtl; + } + + /** + * Set pTtlType + * + * @param string $pTtlType + * + * @return Flash + */ + public function setPTtlType($pTtlType) + { + $this->pTtlType = $pTtlType; + + return $this; + } + + /** + * Get pTtlType + * + * @return string + */ + public function getPTtlType() + { + return $this->pTtlType; + } + + /** + * Set guideNumber + * + * @param string $guideNumber + * + * @return Flash + */ + public function setGuideNumber($guideNumber) + { + $this->guideNumber = $guideNumber; + + return $this; + } + + /** + * Get guideNumber + * + * @return string + */ + public function getGuideNumber() + { + return $this->guideNumber; + } + + /** + * Set batteries + * + * @param string $batteries + * + * @return Flash + */ + public function setBatteries($batteries) + { + $this->batteries = $batteries; + + return $this; + } + + /** + * Get batteries + * + * @return string + */ + public function getBatteries() + { + return $this->batteries; + } + + /** + * Set notes + * + * @param string $notes + * + * @return Flash + */ + public function setNotes($notes) + { + $this->notes = $notes; + + return $this; + } + + /** + * Get notes + * + * @return string + */ + public function getNotes() + { + return $this->notes; + } + + /** + * Set serial + * + * @param string $serial + * + * @return Flash + */ + public function setSerial($serial) + { + $this->serial = $serial; + + return $this; + } + + /** + * Get serial + * + * @return string + */ + public function getSerial() + { + return $this->serial; + } + + /** + * Set formerlyOwned + * + * @param boolean $formerlyOwned + * + * @return Flash + */ + public function setFormerlyOwned($formerlyOwned) + { + $this->formerlyOwned = $formerlyOwned; + + return $this; + } + + /** + * Get formerlyOwned + * + * @return boolean + */ + public function getFormerlyOwned() + { + return $this->formerlyOwned; + } + + /** + * Set received + * + * @param boolean $received + * + * @return Flash + */ + public function setReceived($received) + { + $this->received = $received; + + return $this; + } + + /** + * Get received + * + * @return boolean + */ + public function getReceived() + { + return $this->received; + } +} diff --git a/src/Entity/LensTrait.php b/src/Entity/LensTrait.php new file mode 100644 index 0000000..b1a20aa --- /dev/null +++ b/src/Entity/LensTrait.php @@ -0,0 +1,601 @@ +id; + } + + /** + * Set brand + * + * @param string $brand + * + * @return Lenses + */ + public function setBrand($brand) + { + $this->brand = $brand; + + return $this; + } + + /** + * Get brand + * + * @return string + */ + public function getBrand() + { + return $this->brand; + } + + /** + * Set coatings + * + * @param string $coatings + * + * @return Lenses + */ + public function setCoatings($coatings) + { + $this->coatings = $coatings; + + return $this; + } + + /** + * Get coatings + * + * @return string + */ + public function getCoatings() + { + return $this->coatings; + } + + /** + * Set productLine + * + * @param string $productLine + * + * @return Lenses + */ + public function setProductLine($productLine) + { + $this->productLine = $productLine; + + return $this; + } + + /** + * Get productLine + * + * @return string + */ + public function getProductLine() + { + return $this->productLine; + } + + /** + * Set model + * + * @param string $model + * + * @return Lenses + */ + public function setModel($model) + { + $this->model = $model; + + return $this; + } + + /** + * Get model + * + * @return string + */ + public function getModel() + { + return $this->model; + } + + /** + * Set minFStop + * + * @param string $minFStop + * + * @return Lenses + */ + public function setMinFStop($minFStop) + { + $this->minFStop = $minFStop; + + return $this; + } + + /** + * Get minFStop + * + * @return string + */ + public function getMinFStop() + { + return $this->minFStop; + } + + /** + * Set maxFStop + * + * @param float $maxFStop + * + * @return Lenses + */ + public function setMaxFStop($maxFStop) + { + $this->maxFStop = $maxFStop; + + return $this; + } + + /** + * Get maxFStop + * + * @return float + */ + public function getMaxFStop() + { + return $this->maxFStop; + } + + /** + * Set minFocalLength + * + * @param integer $minFocalLength + * + * @return Lenses + */ + public function setMinFocalLength($minFocalLength) + { + $this->minFocalLength = $minFocalLength; + + return $this; + } + + /** + * Get minFocalLength + * + * @return integer + */ + public function getMinFocalLength() + { + return $this->minFocalLength; + } + + /** + * Set maxFocalLength + * + * @param integer $maxFocalLength + * + * @return Lenses + */ + public function setMaxFocalLength($maxFocalLength) + { + $this->maxFocalLength = $maxFocalLength; + + return $this; + } + + /** + * Get maxFocalLength + * + * @return integer + */ + public function getMaxFocalLength() + { + return $this->maxFocalLength; + } + + /** + * Set serial + * + * @param string $serial + * + * @return Lenses + */ + public function setSerial($serial) + { + $this->serial = $serial; + + return $this; + } + + /** + * Get serial + * + * @return string + */ + public function getSerial() + { + return $this->serial; + } + + /** + * Set notes + * + * @param string $notes + * + * @return Lenses + */ + public function setNotes($notes) + { + $this->notes = $notes; + + return $this; + } + + /** + * Get notes + * + * @return string + */ + public function getNotes() + { + return $this->notes; + } + + /** + * Set mount + * + * @param string $mount + * + * @return Lenses + */ + public function setMount($mount) + { + $this->mount = $mount; + + return $this; + } + + /** + * Get mount + * + * @return string + */ + public function getMount() + { + return $this->mount; + } + + /** + * Set received + * + * @param boolean $received + * + * @return Lenses + */ + public function setReceived($received) + { + $this->received = $received; + + return $this; + } + + /** + * Get received + * + * @return boolean + */ + public function getReceived() + { + return $this->received; + } + + /** + * Set formerlyOwned + * + * @param boolean $formerlyOwned + * + * @return Lenses + */ + public function setFormerlyOwned($formerlyOwned) + { + $this->formerlyOwned = $formerlyOwned; + + return $this; + } + + /** + * Get formerlyOwned + * + * @return boolean + */ + public function getFormerlyOwned() + { + return $this->formerlyOwned; + } + + /** + * Set frontFilterSize + * + * @param string $frontFilterSize + * + * @return Lenses + */ + public function setFrontFilterSize($frontFilterSize) + { + $this->frontFilterSize = $frontFilterSize; + + return $this; + } + + /** + * Get frontFilterSize + * + * @return string + */ + public function getFrontFilterSize() + { + return $this->frontFilterSize; + } + + /** + * Set rearFilterSize + * + * @param string $rearFilterSize + * + * @return Lenses + */ + public function setRearFilterSize($rearFilterSize) + { + $this->rearFilterSize = $rearFilterSize; + + return $this; + } + + /** + * Get rearFilterSize + * + * @return string + */ + public function getRearFilterSize() + { + return $this->rearFilterSize; + } + + /** + * Set isTeleconverter + * + * @param boolean $isTeleconverter + * + * @return Lenses + */ + public function setIsTeleconverter($isTeleconverter) + { + $this->isTeleconverter = $isTeleconverter; + + return $this; + } + + /** + * Get isTeleconverter + * + * @return boolean + */ + public function getIsTeleconverter() + { + return $this->isTeleconverter; + } + + /** + * Set designElements + * + * @param integer $designElements + * + * @return Lenses + */ + public function setDesignElements($designElements) + { + $this->designElements = $designElements; + + return $this; + } + + /** + * Get designElements + * + * @return integer + */ + public function getDesignElements() + { + return $this->designElements; + } + + /** + * Set designGroups + * + * @param integer $designGroups + * + * @return Lenses + */ + public function setDesignGroups($designGroups) + { + $this->designGroups = $designGroups; + + return $this; + } + + /** + * Get designGroups + * + * @return integer + */ + public function getDesignGroups() + { + return $this->designGroups; + } + + /** + * Set apertureBlades + * + * @param integer $apertureBlades + * + * @return Lenses + */ + public function setApertureBlades($apertureBlades) + { + $this->apertureBlades = $apertureBlades; + + return $this; + } + + /** + * Get apertureBlades + * + * @return integer + */ + public function getApertureBlades() + { + return $this->apertureBlades; + } +} diff --git a/src/Entity/Lenses.php b/src/Entity/Lenses.php new file mode 100644 index 0000000..3f9741c --- /dev/null +++ b/src/Entity/Lenses.php @@ -0,0 +1,40 @@ +purchasePrice = $purchasePrice; + + return $this; + } + + /** + * Get purchasePrice + * + * @return string + */ + public function getPurchasePrice() + { + if (empty($this->purchasePrice)) { + return 0; + } + + return $this->purchasePrice; + } +} diff --git a/src/CameraBundle/Form/CameraType.php b/src/Form/CameraType.php similarity index 100% rename from src/CameraBundle/Form/CameraType.php rename to src/Form/CameraType.php diff --git a/src/CameraBundle/Form/CameraTypeType.php b/src/Form/CameraTypeType.php similarity index 100% rename from src/CameraBundle/Form/CameraTypeType.php rename to src/Form/CameraTypeType.php diff --git a/src/CameraBundle/Form/FlashType.php b/src/Form/FlashType.php similarity index 100% rename from src/CameraBundle/Form/FlashType.php rename to src/Form/FlashType.php diff --git a/src/CameraBundle/Form/LensesType.php b/src/Form/LensesType.php similarity index 100% rename from src/CameraBundle/Form/LensesType.php rename to src/Form/LensesType.php diff --git a/src/CameraBundle/Form/PreviouslyOwnedCameraType.php b/src/Form/PreviouslyOwnedCameraType.php similarity index 100% rename from src/CameraBundle/Form/PreviouslyOwnedCameraType.php rename to src/Form/PreviouslyOwnedCameraType.php diff --git a/src/CameraBundle/Form/PreviouslyOwnedFlashType.php b/src/Form/PreviouslyOwnedFlashType.php similarity index 100% rename from src/CameraBundle/Form/PreviouslyOwnedFlashType.php rename to src/Form/PreviouslyOwnedFlashType.php diff --git a/src/CameraBundle/Form/PreviouslyOwnedLensesType.php b/src/Form/PreviouslyOwnedLensesType.php similarity index 100% rename from src/CameraBundle/Form/PreviouslyOwnedLensesType.php rename to src/Form/PreviouslyOwnedLensesType.php diff --git a/src/Kernel.php b/src/Kernel.php new file mode 100644 index 0000000..e85e4f9 --- /dev/null +++ b/src/Kernel.php @@ -0,0 +1,61 @@ +getProjectDir().'/var/cache/'.$this->environment; + } + + public function getLogDir() + { + return $this->getProjectDir().'/var/log'; + } + + public function registerBundles() + { + $contents = require $this->getProjectDir().'/config/bundles.php'; + foreach ($contents as $class => $envs) { + if (isset($envs['all']) || isset($envs[$this->environment])) { + yield new $class(); + } + } + } + + protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader) + { + $container->setParameter('container.autowiring.strict_mode', true); + $container->setParameter('container.dumper.inline_class_loader', true); + $confDir = $this->getProjectDir().'/config'; + $loader->load($confDir.'/packages/*'.self::CONFIG_EXTS, 'glob'); + if (is_dir($confDir.'/packages/'.$this->environment)) { + $loader->load($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob'); + } + $loader->load($confDir.'/services'.self::CONFIG_EXTS, 'glob'); + $loader->load($confDir.'/services_'.$this->environment.self::CONFIG_EXTS, 'glob'); + } + + protected function configureRoutes(RouteCollectionBuilder $routes) + { + $confDir = $this->getProjectDir().'/config'; + if (is_dir($confDir.'/routes/')) { + $routes->import($confDir.'/routes/*'.self::CONFIG_EXTS, '/', 'glob'); + } + if (is_dir($confDir.'/routes/'.$this->environment)) { + $routes->import($confDir.'/routes/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); + } + $routes->import($confDir.'/routes'.self::CONFIG_EXTS, '/', 'glob'); + } +} diff --git a/var/logs/.gitkeep b/src/Repository/.gitignore old mode 100755 new mode 100644 similarity index 100% rename from var/logs/.gitkeep rename to src/Repository/.gitignore diff --git a/src/CameraBundle/Tests/Controller/PreviouslyOwnedFlashControllerTest.php b/src/Tests/Controller/PreviouslyOwnedFlashControllerTest.php similarity index 100% rename from src/CameraBundle/Tests/Controller/PreviouslyOwnedFlashControllerTest.php rename to src/Tests/Controller/PreviouslyOwnedFlashControllerTest.php diff --git a/src/CameraBundle/Types/MoneyType.php b/src/Types/MoneyType.php similarity index 100% rename from src/CameraBundle/Types/MoneyType.php rename to src/Types/MoneyType.php diff --git a/src/CameraBundle/ValueObject/Money.php b/src/ValueObject/Money.php similarity index 100% rename from src/CameraBundle/ValueObject/Money.php rename to src/ValueObject/Money.php diff --git a/symfony.lock b/symfony.lock new file mode 100644 index 0000000..355de7b --- /dev/null +++ b/symfony.lock @@ -0,0 +1,188 @@ +{ + "symfony/flex": { + "version": "1.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "1.0", + "ref": "e921bdbfe20cdefa3b82f379d1cd36df1bc8d115" + } + }, + "psr/log": { + "version": "1.0.2" + }, + "symfony/debug": { + "version": "v3.3.13" + }, + "symfony/polyfill-mbstring": { + "version": "v1.6.0" + }, + "symfony/console": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.3", + "ref": "9f94d3ea453cd8a3b95db7f82592d7344fe3a76a" + } + }, + "symfony/routing": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.3", + "ref": "a249484db698d1a847a30291c8f732414ac47e25" + } + }, + "symfony/http-foundation": { + "version": "v3.3.13" + }, + "symfony/event-dispatcher": { + "version": "v3.3.13" + }, + "symfony/http-kernel": { + "version": "v3.3.13" + }, + "symfony/finder": { + "version": "v3.3.13" + }, + "symfony/filesystem": { + "version": "v3.3.13" + }, + "psr/container": { + "version": "1.0.0" + }, + "symfony/dependency-injection": { + "version": "v3.3.13" + }, + "symfony/config": { + "version": "v3.3.13" + }, + "psr/simple-cache": { + "version": "1.0.0" + }, + "psr/cache": { + "version": "1.0.1" + }, + "symfony/cache": { + "version": "v3.3.13" + }, + "symfony/framework-bundle": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.3", + "ref": "305b268e55e75059f20ec9827a8fd09a35c59866" + } + }, + "symfony/yaml": { + "version": "v3.3.13" + }, + "symfony/dotenv": { + "version": "v3.3.13" + }, + "doctrine/cache": { + "version": "v1.7.1" + }, + "doctrine/inflector": { + "version": "v1.2.0" + }, + "doctrine/lexer": { + "version": "v1.0.1" + }, + "doctrine/collections": { + "version": "v1.5.0" + }, + "doctrine/annotations": { + "version": "1.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "1.0", + "ref": "b9cde490c337f6c496d5f403fa6f827cf8b4706d" + } + }, + "doctrine/common": { + "version": "v2.8.1" + }, + "symfony/doctrine-bridge": { + "version": "v4.0.0" + }, + "doctrine/doctrine-cache-bundle": { + "version": "1.3.2" + }, + "jdorn/sql-formatter": { + "version": "v1.2.17" + }, + "doctrine/dbal": { + "version": "v2.6.3" + }, + "doctrine/doctrine-bundle": { + "version": "1.6", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "1.6", + "ref": "44d3aa7752dd46f77ba11af2297a25e1dedfb4d0" + } + }, + "doctrine/instantiator": { + "version": "1.1.0" + }, + "doctrine/orm": { + "version": "v2.5.13" + }, + "twig/twig": { + "version": "v2.4.4" + }, + "monolog/monolog": { + "version": "1.23.0" + }, + "symfony/monolog-bridge": { + "version": "v4.0.0" + }, + "symfony/monolog-bundle": { + "version": "3.1", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.1", + "ref": "c24944bd87dacf0bb8fa218dc21e4a70fff56882" + } + }, + "sensio/framework-extra-bundle": { + "version": "v3.0.28" + }, + "symfony/twig-bridge": { + "version": "v4.0.0" + }, + "symfony/twig-bundle": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.3", + "ref": "f75ac166398e107796ca94cc57fa1edaa06ec47f" + } + }, + "symfony/inflector": { + "version": "v4.0.0" + }, + "symfony/property-access": { + "version": "v4.0.0" + }, + "symfony/options-resolver": { + "version": "v4.0.0" + }, + "symfony/intl": { + "version": "v4.0.0" + }, + "symfony/polyfill-intl-icu": { + "version": "v1.6.0" + }, + "symfony/form": { + "version": "v4.0.0" + } +} diff --git a/app/Resources/views/base.html.twig b/templates/base.html.twig similarity index 92% rename from app/Resources/views/base.html.twig rename to templates/base.html.twig index 1bbb1a0..9895283 100644 --- a/app/Resources/views/base.html.twig +++ b/templates/base.html.twig @@ -9,7 +9,7 @@ {% block stylesheets %}{% endblock %} - +
diff --git a/app/Resources/views/camera/edit.html.twig b/templates/camera/edit.html.twig similarity index 100% rename from app/Resources/views/camera/edit.html.twig rename to templates/camera/edit.html.twig diff --git a/app/Resources/views/camera/index.html.twig b/templates/camera/index.html.twig similarity index 100% rename from app/Resources/views/camera/index.html.twig rename to templates/camera/index.html.twig diff --git a/app/Resources/views/camera/new.html.twig b/templates/camera/new.html.twig similarity index 100% rename from app/Resources/views/camera/new.html.twig rename to templates/camera/new.html.twig diff --git a/app/Resources/views/camera/show.html.twig b/templates/camera/show.html.twig similarity index 100% rename from app/Resources/views/camera/show.html.twig rename to templates/camera/show.html.twig diff --git a/app/Resources/views/cameratype/edit.html.twig b/templates/cameratype/edit.html.twig similarity index 100% rename from app/Resources/views/cameratype/edit.html.twig rename to templates/cameratype/edit.html.twig diff --git a/app/Resources/views/cameratype/index.html.twig b/templates/cameratype/index.html.twig similarity index 100% rename from app/Resources/views/cameratype/index.html.twig rename to templates/cameratype/index.html.twig diff --git a/app/Resources/views/cameratype/new.html.twig b/templates/cameratype/new.html.twig similarity index 100% rename from app/Resources/views/cameratype/new.html.twig rename to templates/cameratype/new.html.twig diff --git a/app/Resources/views/cameratype/show.html.twig b/templates/cameratype/show.html.twig similarity index 100% rename from app/Resources/views/cameratype/show.html.twig rename to templates/cameratype/show.html.twig diff --git a/app/Resources/views/default/index.html.twig b/templates/default/index.html.twig similarity index 100% rename from app/Resources/views/default/index.html.twig rename to templates/default/index.html.twig diff --git a/app/Resources/views/flash/edit.html.twig b/templates/flash/edit.html.twig similarity index 100% rename from app/Resources/views/flash/edit.html.twig rename to templates/flash/edit.html.twig diff --git a/app/Resources/views/flash/index.html.twig b/templates/flash/index.html.twig similarity index 100% rename from app/Resources/views/flash/index.html.twig rename to templates/flash/index.html.twig diff --git a/app/Resources/views/flash/new.html.twig b/templates/flash/new.html.twig similarity index 100% rename from app/Resources/views/flash/new.html.twig rename to templates/flash/new.html.twig diff --git a/app/Resources/views/flash/show.html.twig b/templates/flash/show.html.twig similarity index 100% rename from app/Resources/views/flash/show.html.twig rename to templates/flash/show.html.twig diff --git a/app/Resources/views/form.html.twig b/templates/form.html.twig similarity index 100% rename from app/Resources/views/form.html.twig rename to templates/form.html.twig diff --git a/app/Resources/views/header.html.twig b/templates/header.html.twig similarity index 100% rename from app/Resources/views/header.html.twig rename to templates/header.html.twig diff --git a/app/Resources/views/lenses/edit.html.twig b/templates/lenses/edit.html.twig similarity index 100% rename from app/Resources/views/lenses/edit.html.twig rename to templates/lenses/edit.html.twig diff --git a/app/Resources/views/lenses/index.html.twig b/templates/lenses/index.html.twig similarity index 100% rename from app/Resources/views/lenses/index.html.twig rename to templates/lenses/index.html.twig diff --git a/app/Resources/views/lenses/new.html.twig b/templates/lenses/new.html.twig similarity index 100% rename from app/Resources/views/lenses/new.html.twig rename to templates/lenses/new.html.twig diff --git a/app/Resources/views/lenses/show.html.twig b/templates/lenses/show.html.twig similarity index 100% rename from app/Resources/views/lenses/show.html.twig rename to templates/lenses/show.html.twig diff --git a/app/Resources/views/previouslyownedcamera/edit.html.twig b/templates/previouslyownedcamera/edit.html.twig similarity index 100% rename from app/Resources/views/previouslyownedcamera/edit.html.twig rename to templates/previouslyownedcamera/edit.html.twig diff --git a/app/Resources/views/previouslyownedcamera/index.html.twig b/templates/previouslyownedcamera/index.html.twig similarity index 100% rename from app/Resources/views/previouslyownedcamera/index.html.twig rename to templates/previouslyownedcamera/index.html.twig diff --git a/app/Resources/views/previouslyownedcamera/show.html.twig b/templates/previouslyownedcamera/show.html.twig similarity index 100% rename from app/Resources/views/previouslyownedcamera/show.html.twig rename to templates/previouslyownedcamera/show.html.twig diff --git a/app/Resources/views/previouslyownedflash/edit.html.twig b/templates/previouslyownedflash/edit.html.twig similarity index 100% rename from app/Resources/views/previouslyownedflash/edit.html.twig rename to templates/previouslyownedflash/edit.html.twig diff --git a/app/Resources/views/previouslyownedflash/index.html.twig b/templates/previouslyownedflash/index.html.twig similarity index 100% rename from app/Resources/views/previouslyownedflash/index.html.twig rename to templates/previouslyownedflash/index.html.twig diff --git a/app/Resources/views/previouslyownedflash/show.html.twig b/templates/previouslyownedflash/show.html.twig similarity index 100% rename from app/Resources/views/previouslyownedflash/show.html.twig rename to templates/previouslyownedflash/show.html.twig diff --git a/app/Resources/views/previouslyownedlenses/edit.html.twig b/templates/previouslyownedlenses/edit.html.twig similarity index 100% rename from app/Resources/views/previouslyownedlenses/edit.html.twig rename to templates/previouslyownedlenses/edit.html.twig diff --git a/app/Resources/views/previouslyownedlenses/index.html.twig b/templates/previouslyownedlenses/index.html.twig similarity index 100% rename from app/Resources/views/previouslyownedlenses/index.html.twig rename to templates/previouslyownedlenses/index.html.twig diff --git a/app/Resources/views/previouslyownedlenses/show.html.twig b/templates/previouslyownedlenses/show.html.twig similarity index 100% rename from app/Resources/views/previouslyownedlenses/show.html.twig rename to templates/previouslyownedlenses/show.html.twig diff --git a/var/SymfonyRequirements.php b/var/SymfonyRequirements.php deleted file mode 100755 index 3b14a40..0000000 --- a/var/SymfonyRequirements.php +++ /dev/null @@ -1,817 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Users of PHP 5.2 should be able to run the requirements checks. - * This is why the file and all classes must be compatible with PHP 5.2+ - * (e.g. not using namespaces and closures). - * - * ************** CAUTION ************** - * - * DO NOT EDIT THIS FILE as it will be overridden by Composer as part of - * the installation/update process. The original file resides in the - * SensioDistributionBundle. - * - * ************** CAUTION ************** - */ - -/** - * Represents a single PHP requirement, e.g. an installed extension. - * It can be a mandatory requirement or an optional recommendation. - * There is a special subclass, named PhpIniRequirement, to check a php.ini configuration. - * - * @author Tobias Schultze - */ -class Requirement -{ - private $fulfilled; - private $testMessage; - private $helpText; - private $helpHtml; - private $optional; - - /** - * Constructor that initializes the requirement. - * - * @param bool $fulfilled Whether the requirement is fulfilled - * @param string $testMessage The message for testing the requirement - * @param string $helpHtml The help text formatted in HTML for resolving the problem - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - * @param bool $optional Whether this is only an optional recommendation not a mandatory requirement - */ - public function __construct($fulfilled, $testMessage, $helpHtml, $helpText = null, $optional = false) - { - $this->fulfilled = (bool) $fulfilled; - $this->testMessage = (string) $testMessage; - $this->helpHtml = (string) $helpHtml; - $this->helpText = null === $helpText ? strip_tags($this->helpHtml) : (string) $helpText; - $this->optional = (bool) $optional; - } - - /** - * Returns whether the requirement is fulfilled. - * - * @return bool true if fulfilled, otherwise false - */ - public function isFulfilled() - { - return $this->fulfilled; - } - - /** - * Returns the message for testing the requirement. - * - * @return string The test message - */ - public function getTestMessage() - { - return $this->testMessage; - } - - /** - * Returns the help text for resolving the problem. - * - * @return string The help text - */ - public function getHelpText() - { - return $this->helpText; - } - - /** - * Returns the help text formatted in HTML. - * - * @return string The HTML help - */ - public function getHelpHtml() - { - return $this->helpHtml; - } - - /** - * Returns whether this is only an optional recommendation and not a mandatory requirement. - * - * @return bool true if optional, false if mandatory - */ - public function isOptional() - { - return $this->optional; - } -} - -/** - * Represents a PHP requirement in form of a php.ini configuration. - * - * @author Tobias Schultze - */ -class PhpIniRequirement extends Requirement -{ - /** - * Constructor that initializes the requirement. - * - * @param string $cfgName The configuration name used for ini_get() - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, - * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement - * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. - * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. - * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. - * @param string|null $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) - * @param string|null $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - * @param bool $optional Whether this is only an optional recommendation not a mandatory requirement - */ - public function __construct($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null, $optional = false) - { - $cfgValue = ini_get($cfgName); - - if (is_callable($evaluation)) { - if (null === $testMessage || null === $helpHtml) { - throw new InvalidArgumentException('You must provide the parameters testMessage and helpHtml for a callback evaluation.'); - } - - $fulfilled = call_user_func($evaluation, $cfgValue); - } else { - if (null === $testMessage) { - $testMessage = sprintf('%s %s be %s in php.ini', - $cfgName, - $optional ? 'should' : 'must', - $evaluation ? 'enabled' : 'disabled' - ); - } - - if (null === $helpHtml) { - $helpHtml = sprintf('Set %s to %s in php.ini*.', - $cfgName, - $evaluation ? 'on' : 'off' - ); - } - - $fulfilled = $evaluation == $cfgValue; - } - - parent::__construct($fulfilled || ($approveCfgAbsence && false === $cfgValue), $testMessage, $helpHtml, $helpText, $optional); - } -} - -/** - * A RequirementCollection represents a set of Requirement instances. - * - * @author Tobias Schultze - */ -class RequirementCollection implements IteratorAggregate -{ - /** - * @var Requirement[] - */ - private $requirements = array(); - - /** - * Gets the current RequirementCollection as an Iterator. - * - * @return Traversable A Traversable interface - */ - public function getIterator() - { - return new ArrayIterator($this->requirements); - } - - /** - * Adds a Requirement. - * - * @param Requirement $requirement A Requirement instance - */ - public function add(Requirement $requirement) - { - $this->requirements[] = $requirement; - } - - /** - * Adds a mandatory requirement. - * - * @param bool $fulfilled Whether the requirement is fulfilled - * @param string $testMessage The message for testing the requirement - * @param string $helpHtml The help text formatted in HTML for resolving the problem - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - */ - public function addRequirement($fulfilled, $testMessage, $helpHtml, $helpText = null) - { - $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, false)); - } - - /** - * Adds an optional recommendation. - * - * @param bool $fulfilled Whether the recommendation is fulfilled - * @param string $testMessage The message for testing the recommendation - * @param string $helpHtml The help text formatted in HTML for resolving the problem - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - */ - public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText = null) - { - $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, true)); - } - - /** - * Adds a mandatory requirement in form of a php.ini configuration. - * - * @param string $cfgName The configuration name used for ini_get() - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, - * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement - * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. - * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. - * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. - * @param string $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) - * @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - */ - public function addPhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null) - { - $this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, false)); - } - - /** - * Adds an optional recommendation in form of a php.ini configuration. - * - * @param string $cfgName The configuration name used for ini_get() - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, - * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement - * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. - * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. - * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. - * @param string $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) - * @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - */ - public function addPhpIniRecommendation($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null) - { - $this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, true)); - } - - /** - * Adds a requirement collection to the current set of requirements. - * - * @param RequirementCollection $collection A RequirementCollection instance - */ - public function addCollection(RequirementCollection $collection) - { - $this->requirements = array_merge($this->requirements, $collection->all()); - } - - /** - * Returns both requirements and recommendations. - * - * @return Requirement[] - */ - public function all() - { - return $this->requirements; - } - - /** - * Returns all mandatory requirements. - * - * @return Requirement[] - */ - public function getRequirements() - { - $array = array(); - foreach ($this->requirements as $req) { - if (!$req->isOptional()) { - $array[] = $req; - } - } - - return $array; - } - - /** - * Returns the mandatory requirements that were not met. - * - * @return Requirement[] - */ - public function getFailedRequirements() - { - $array = array(); - foreach ($this->requirements as $req) { - if (!$req->isFulfilled() && !$req->isOptional()) { - $array[] = $req; - } - } - - return $array; - } - - /** - * Returns all optional recommendations. - * - * @return Requirement[] - */ - public function getRecommendations() - { - $array = array(); - foreach ($this->requirements as $req) { - if ($req->isOptional()) { - $array[] = $req; - } - } - - return $array; - } - - /** - * Returns the recommendations that were not met. - * - * @return Requirement[] - */ - public function getFailedRecommendations() - { - $array = array(); - foreach ($this->requirements as $req) { - if (!$req->isFulfilled() && $req->isOptional()) { - $array[] = $req; - } - } - - return $array; - } - - /** - * Returns whether a php.ini configuration is not correct. - * - * @return bool php.ini configuration problem? - */ - public function hasPhpIniConfigIssue() - { - foreach ($this->requirements as $req) { - if (!$req->isFulfilled() && $req instanceof PhpIniRequirement) { - return true; - } - } - - return false; - } - - /** - * Returns the PHP configuration file (php.ini) path. - * - * @return string|false php.ini file path - */ - public function getPhpIniConfigPath() - { - return get_cfg_var('cfg_file_path'); - } -} - -/** - * This class specifies all requirements and optional recommendations that - * are necessary to run the Symfony Standard Edition. - * - * @author Tobias Schultze - * @author Fabien Potencier - */ -class SymfonyRequirements extends RequirementCollection -{ - const LEGACY_REQUIRED_PHP_VERSION = '5.3.3'; - const REQUIRED_PHP_VERSION = '5.5.9'; - - /** - * Constructor that initializes the requirements. - */ - public function __construct() - { - /* mandatory requirements follow */ - - $installedPhpVersion = phpversion(); - $requiredPhpVersion = $this->getPhpRequiredVersion(); - - $this->addRecommendation( - $requiredPhpVersion, - 'Vendors should be installed in order to check all requirements.', - 'Run the composer install command.', - 'Run the "composer install" command.' - ); - - if (false !== $requiredPhpVersion) { - $this->addRequirement( - version_compare($installedPhpVersion, $requiredPhpVersion, '>='), - sprintf('PHP version must be at least %s (%s installed)', $requiredPhpVersion, $installedPhpVersion), - sprintf('You are running PHP version "%s", but Symfony needs at least PHP "%s" to run. - Before using Symfony, upgrade your PHP installation, preferably to the latest version.', - $installedPhpVersion, $requiredPhpVersion), - sprintf('Install PHP %s or newer (installed version is %s)', $requiredPhpVersion, $installedPhpVersion) - ); - } - - $this->addRequirement( - version_compare($installedPhpVersion, '5.3.16', '!='), - 'PHP version must not be 5.3.16 as Symfony won\'t work properly with it', - 'Install PHP 5.3.17 or newer (or downgrade to an earlier PHP version)' - ); - - $this->addRequirement( - is_dir(__DIR__.'/../vendor/composer'), - 'Vendor libraries must be installed', - 'Vendor libraries are missing. Install composer following instructions from http://getcomposer.org/. '. - 'Then run "php composer.phar install" to install them.' - ); - - $cacheDir = is_dir(__DIR__.'/../var/cache') ? __DIR__.'/../var/cache' : __DIR__.'/cache'; - - $this->addRequirement( - is_writable($cacheDir), - 'app/cache/ or var/cache/ directory must be writable', - 'Change the permissions of either "app/cache/" or "var/cache/" directory so that the web server can write into it.' - ); - - $logsDir = is_dir(__DIR__.'/../var/logs') ? __DIR__.'/../var/logs' : __DIR__.'/logs'; - - $this->addRequirement( - is_writable($logsDir), - 'app/logs/ or var/logs/ directory must be writable', - 'Change the permissions of either "app/logs/" or "var/logs/" directory so that the web server can write into it.' - ); - - if (version_compare($installedPhpVersion, '7.0.0', '<')) { - $this->addPhpIniRequirement( - 'date.timezone', true, false, - 'date.timezone setting must be set', - 'Set the "date.timezone" setting in php.ini* (like Europe/Paris).' - ); - } - - if (false !== $requiredPhpVersion && version_compare($installedPhpVersion, $requiredPhpVersion, '>=')) { - $timezones = array(); - foreach (DateTimeZone::listAbbreviations() as $abbreviations) { - foreach ($abbreviations as $abbreviation) { - $timezones[$abbreviation['timezone_id']] = true; - } - } - - $this->addRequirement( - isset($timezones[@date_default_timezone_get()]), - sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()), - 'Your default timezone is not supported by PHP. Check for typos in your php.ini file and have a look at the list of deprecated timezones at http://php.net/manual/en/timezones.others.php.' - ); - } - - $this->addRequirement( - function_exists('iconv'), - 'iconv() must be available', - 'Install and enable the iconv extension.' - ); - - $this->addRequirement( - function_exists('json_encode'), - 'json_encode() must be available', - 'Install and enable the JSON extension.' - ); - - $this->addRequirement( - function_exists('session_start'), - 'session_start() must be available', - 'Install and enable the session extension.' - ); - - $this->addRequirement( - function_exists('ctype_alpha'), - 'ctype_alpha() must be available', - 'Install and enable the ctype extension.' - ); - - $this->addRequirement( - function_exists('token_get_all'), - 'token_get_all() must be available', - 'Install and enable the Tokenizer extension.' - ); - - $this->addRequirement( - function_exists('simplexml_import_dom'), - 'simplexml_import_dom() must be available', - 'Install and enable the SimpleXML extension.' - ); - - if (function_exists('apc_store') && ini_get('apc.enabled')) { - if (version_compare($installedPhpVersion, '5.4.0', '>=')) { - $this->addRequirement( - version_compare(phpversion('apc'), '3.1.13', '>='), - 'APC version must be at least 3.1.13 when using PHP 5.4', - 'Upgrade your APC extension (3.1.13+).' - ); - } else { - $this->addRequirement( - version_compare(phpversion('apc'), '3.0.17', '>='), - 'APC version must be at least 3.0.17', - 'Upgrade your APC extension (3.0.17+).' - ); - } - } - - $this->addPhpIniRequirement('detect_unicode', false); - - if (extension_loaded('suhosin')) { - $this->addPhpIniRequirement( - 'suhosin.executor.include.whitelist', - create_function('$cfgValue', 'return false !== stripos($cfgValue, "phar");'), - false, - 'suhosin.executor.include.whitelist must be configured correctly in php.ini', - 'Add "phar" to suhosin.executor.include.whitelist in php.ini*.' - ); - } - - if (extension_loaded('xdebug')) { - $this->addPhpIniRequirement( - 'xdebug.show_exception_trace', false, true - ); - - $this->addPhpIniRequirement( - 'xdebug.scream', false, true - ); - - $this->addPhpIniRecommendation( - 'xdebug.max_nesting_level', - create_function('$cfgValue', 'return $cfgValue > 100;'), - true, - 'xdebug.max_nesting_level should be above 100 in php.ini', - 'Set "xdebug.max_nesting_level" to e.g. "250" in php.ini* to stop Xdebug\'s infinite recursion protection erroneously throwing a fatal error in your project.' - ); - } - - $pcreVersion = defined('PCRE_VERSION') ? (float) PCRE_VERSION : null; - - $this->addRequirement( - null !== $pcreVersion, - 'PCRE extension must be available', - 'Install the PCRE extension (version 8.0+).' - ); - - if (extension_loaded('mbstring')) { - $this->addPhpIniRequirement( - 'mbstring.func_overload', - create_function('$cfgValue', 'return (int) $cfgValue === 0;'), - true, - 'string functions should not be overloaded', - 'Set "mbstring.func_overload" to 0 in php.ini* to disable function overloading by the mbstring extension.' - ); - } - - /* optional recommendations follow */ - - if (file_exists(__DIR__.'/../vendor/composer')) { - require_once __DIR__.'/../vendor/autoload.php'; - - try { - $r = new ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle'); - - $contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php'); - } catch (ReflectionException $e) { - $contents = ''; - } - $this->addRecommendation( - file_get_contents(__FILE__) === $contents, - 'Requirements file should be up-to-date', - 'Your requirements file is outdated. Run composer install and re-check your configuration.' - ); - } - - $this->addRecommendation( - version_compare($installedPhpVersion, '5.3.4', '>='), - 'You should use at least PHP 5.3.4 due to PHP bug #52083 in earlier versions', - 'Your project might malfunction randomly due to PHP bug #52083 ("Notice: Trying to get property of non-object"). Install PHP 5.3.4 or newer.' - ); - - $this->addRecommendation( - version_compare($installedPhpVersion, '5.3.8', '>='), - 'When using annotations you should have at least PHP 5.3.8 due to PHP bug #55156', - 'Install PHP 5.3.8 or newer if your project uses annotations.' - ); - - $this->addRecommendation( - version_compare($installedPhpVersion, '5.4.0', '!='), - 'You should not use PHP 5.4.0 due to the PHP bug #61453', - 'Your project might not work properly due to the PHP bug #61453 ("Cannot dump definitions which have method calls"). Install PHP 5.4.1 or newer.' - ); - - $this->addRecommendation( - version_compare($installedPhpVersion, '5.4.11', '>='), - 'When using the logout handler from the Symfony Security Component, you should have at least PHP 5.4.11 due to PHP bug #63379 (as a workaround, you can also set invalidate_session to false in the security logout handler configuration)', - 'Install PHP 5.4.11 or newer if your project uses the logout handler from the Symfony Security Component.' - ); - - $this->addRecommendation( - (version_compare($installedPhpVersion, '5.3.18', '>=') && version_compare($installedPhpVersion, '5.4.0', '<')) - || - version_compare($installedPhpVersion, '5.4.8', '>='), - 'You should use PHP 5.3.18+ or PHP 5.4.8+ to always get nice error messages for fatal errors in the development environment due to PHP bug #61767/#60909', - 'Install PHP 5.3.18+ or PHP 5.4.8+ if you want nice error messages for all fatal errors in the development environment.' - ); - - if (null !== $pcreVersion) { - $this->addRecommendation( - $pcreVersion >= 8.0, - sprintf('PCRE extension should be at least version 8.0 (%s installed)', $pcreVersion), - 'PCRE 8.0+ is preconfigured in PHP since 5.3.2 but you are using an outdated version of it. Symfony probably works anyway but it is recommended to upgrade your PCRE extension.' - ); - } - - $this->addRecommendation( - class_exists('DomDocument'), - 'PHP-DOM and PHP-XML modules should be installed', - 'Install and enable the PHP-DOM and the PHP-XML modules.' - ); - - $this->addRecommendation( - function_exists('mb_strlen'), - 'mb_strlen() should be available', - 'Install and enable the mbstring extension.' - ); - - $this->addRecommendation( - function_exists('utf8_decode'), - 'utf8_decode() should be available', - 'Install and enable the XML extension.' - ); - - $this->addRecommendation( - function_exists('filter_var'), - 'filter_var() should be available', - 'Install and enable the filter extension.' - ); - - if (!defined('PHP_WINDOWS_VERSION_BUILD')) { - $this->addRecommendation( - function_exists('posix_isatty'), - 'posix_isatty() should be available', - 'Install and enable the php_posix extension (used to colorize the CLI output).' - ); - } - - $this->addRecommendation( - extension_loaded('intl'), - 'intl extension should be available', - 'Install and enable the intl extension (used for validators).' - ); - - if (extension_loaded('intl')) { - // in some WAMP server installations, new Collator() returns null - $this->addRecommendation( - null !== new Collator('fr_FR'), - 'intl extension should be correctly configured', - 'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.' - ); - - // check for compatible ICU versions (only done when you have the intl extension) - if (defined('INTL_ICU_VERSION')) { - $version = INTL_ICU_VERSION; - } else { - $reflector = new ReflectionExtension('intl'); - - ob_start(); - $reflector->info(); - $output = strip_tags(ob_get_clean()); - - preg_match('/^ICU version +(?:=> )?(.*)$/m', $output, $matches); - $version = $matches[1]; - } - - $this->addRecommendation( - version_compare($version, '4.0', '>='), - 'intl ICU version should be at least 4+', - 'Upgrade your intl extension with a newer ICU version (4+).' - ); - - if (class_exists('Symfony\Component\Intl\Intl')) { - $this->addRecommendation( - \Symfony\Component\Intl\Intl::getIcuDataVersion() <= \Symfony\Component\Intl\Intl::getIcuVersion(), - sprintf('intl ICU version installed on your system is outdated (%s) and does not match the ICU data bundled with Symfony (%s)', \Symfony\Component\Intl\Intl::getIcuVersion(), \Symfony\Component\Intl\Intl::getIcuDataVersion()), - 'To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.' - ); - if (\Symfony\Component\Intl\Intl::getIcuDataVersion() <= \Symfony\Component\Intl\Intl::getIcuVersion()) { - $this->addRecommendation( - \Symfony\Component\Intl\Intl::getIcuDataVersion() === \Symfony\Component\Intl\Intl::getIcuVersion(), - sprintf('intl ICU version installed on your system (%s) does not match the ICU data bundled with Symfony (%s)', \Symfony\Component\Intl\Intl::getIcuVersion(), \Symfony\Component\Intl\Intl::getIcuDataVersion()), - 'To avoid internationalization data inconsistencies upgrade the symfony/intl component.' - ); - } - } - - $this->addPhpIniRecommendation( - 'intl.error_level', - create_function('$cfgValue', 'return (int) $cfgValue === 0;'), - true, - 'intl.error_level should be 0 in php.ini', - 'Set "intl.error_level" to "0" in php.ini* to inhibit the messages when an error occurs in ICU functions.' - ); - } - - $accelerator = - (extension_loaded('eaccelerator') && ini_get('eaccelerator.enable')) - || - (extension_loaded('apc') && ini_get('apc.enabled')) - || - (extension_loaded('Zend Optimizer+') && ini_get('zend_optimizerplus.enable')) - || - (extension_loaded('Zend OPcache') && ini_get('opcache.enable')) - || - (extension_loaded('xcache') && ini_get('xcache.cacher')) - || - (extension_loaded('wincache') && ini_get('wincache.ocenabled')) - ; - - $this->addRecommendation( - $accelerator, - 'a PHP accelerator should be installed', - 'Install and/or enable a PHP accelerator (highly recommended).' - ); - - if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { - $this->addRecommendation( - $this->getRealpathCacheSize() >= 5 * 1024 * 1024, - 'realpath_cache_size should be at least 5M in php.ini', - 'Setting "realpath_cache_size" to e.g. "5242880" or "5M" in php.ini* may improve performance on Windows significantly in some cases.' - ); - } - - $this->addPhpIniRecommendation('short_open_tag', false); - - $this->addPhpIniRecommendation('magic_quotes_gpc', false, true); - - $this->addPhpIniRecommendation('register_globals', false, true); - - $this->addPhpIniRecommendation('session.auto_start', false); - - $this->addRecommendation( - class_exists('PDO'), - 'PDO should be installed', - 'Install PDO (mandatory for Doctrine).' - ); - - if (class_exists('PDO')) { - $drivers = PDO::getAvailableDrivers(); - $this->addRecommendation( - count($drivers) > 0, - sprintf('PDO should have some drivers installed (currently available: %s)', count($drivers) ? implode(', ', $drivers) : 'none'), - 'Install PDO drivers (mandatory for Doctrine).' - ); - } - } - - /** - * Loads realpath_cache_size from php.ini and converts it to int. - * - * (e.g. 16k is converted to 16384 int) - * - * @return int - */ - protected function getRealpathCacheSize() - { - $size = ini_get('realpath_cache_size'); - $size = trim($size); - $unit = ''; - if (!ctype_digit($size)) { - $unit = strtolower(substr($size, -1, 1)); - $size = (int) substr($size, 0, -1); - } - switch ($unit) { - case 'g': - return $size * 1024 * 1024 * 1024; - case 'm': - return $size * 1024 * 1024; - case 'k': - return $size * 1024; - default: - return (int) $size; - } - } - - /** - * Defines PHP required version from Symfony version. - * - * @return string|false The PHP required version or false if it could not be guessed - */ - protected function getPhpRequiredVersion() - { - if (!file_exists($path = __DIR__.'/../composer.lock')) { - return false; - } - - $composerLock = json_decode(file_get_contents($path), true); - foreach ($composerLock['packages'] as $package) { - $name = $package['name']; - if ('symfony/symfony' !== $name && 'symfony/http-kernel' !== $name) { - continue; - } - - return (int) $package['version'][1] > 2 ? self::REQUIRED_PHP_VERSION : self::LEGACY_REQUIRED_PHP_VERSION; - } - - return false; - } -} diff --git a/var/sessions/.gitkeep b/var/sessions/.gitkeep deleted file mode 100755 index e69de29..0000000 diff --git a/web/.htaccess b/web/.htaccess deleted file mode 100644 index 4dc7251..0000000 --- a/web/.htaccess +++ /dev/null @@ -1,68 +0,0 @@ -# Use the front controller as index file. It serves as a fallback solution when -# every other rewrite/redirect fails (e.g. in an aliased environment without -# mod_rewrite). Additionally, this reduces the matching process for the -# start page (path "/") because otherwise Apache will apply the rewriting rules -# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl). -DirectoryIndex app.php - -# By default, Apache does not evaluate symbolic links if you did not enable this -# feature in your server configuration. Uncomment the following line if you -# install assets as symlinks or if you experience problems related to symlinks -# when compiling LESS/Sass/CoffeScript assets. -# Options FollowSymlinks - -# Disabling MultiViews prevents unwanted negotiation, e.g. "/app" should not resolve -# to the front controller "/app.php" but be rewritten to "/app.php/app". - - Options -MultiViews - - - - RewriteEngine On - - # Determine the RewriteBase automatically and set it as environment variable. - # If you are using Apache aliases to do mass virtual hosting or installed the - # project in a subdirectory, the base path will be prepended to allow proper - # resolution of the app.php file and to redirect to the correct URI. It will - # work in environments without path prefix as well, providing a safe, one-size - # fits all solution. But as you do not need it in this case, you can comment - # the following 2 lines to eliminate the overhead. - RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ - RewriteRule ^(.*) - [E=BASE:%1] - - # Sets the HTTP_AUTHORIZATION header removed by Apache - RewriteCond %{HTTP:Authorization} . - RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] - - # Redirect to URI without front controller to prevent duplicate content - # (with and without `/app.php`). Only do this redirect on the initial - # rewrite by Apache and not on subsequent cycles. Otherwise we would get an - # endless redirect loop (request -> rewrite to front controller -> - # redirect -> request -> ...). - # So in case you get a "too many redirects" error or you always get redirected - # to the start page because your Apache does not expose the REDIRECT_STATUS - # environment variable, you have 2 choices: - # - disable this feature by commenting the following 2 lines or - # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the - # following RewriteCond (best solution) - RewriteCond %{ENV:REDIRECT_STATUS} ^$ - RewriteRule ^app\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L] - - # If the requested filename exists, simply serve it. - # We only want to let Apache serve files and not directories. - RewriteCond %{REQUEST_FILENAME} -f - RewriteRule ^ - [L] - - # Rewrite all other queries to the front controller. - RewriteRule ^ %{ENV:BASE}/app.php [L] - - - - - # When mod_rewrite is not available, we instruct a temporary redirect of - # the start page to the front controller explicitly so that the website - # and the generated links can still be used. - RedirectMatch 302 ^/$ /app.php/ - # RedirectTemp cannot be used instead - - diff --git a/web/app.php b/web/app.php deleted file mode 100644 index 943d089..0000000 --- a/web/app.php +++ /dev/null @@ -1,21 +0,0 @@ -loadClassCache(); -} -//$kernel = new AppCache($kernel); - -// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter -//Request::enableHttpMethodParameterOverride(); -$request = Request::createFromGlobals(); -$response = $kernel->handle($request); -$response->send(); -$kernel->terminate($request, $response); diff --git a/web/app_dev.php b/web/app_dev.php deleted file mode 100644 index 42dbe0f..0000000 --- a/web/app_dev.php +++ /dev/null @@ -1,13 +0,0 @@ -handle($request); -$response->send(); -$kernel->terminate($request, $response); diff --git a/web/apple-touch-icon.png b/web/apple-touch-icon.png deleted file mode 100644 index 6e6b6ce..0000000 Binary files a/web/apple-touch-icon.png and /dev/null differ diff --git a/web/config.php b/web/config.php deleted file mode 100644 index fd7e17e..0000000 --- a/web/config.php +++ /dev/null @@ -1,422 +0,0 @@ -getFailedRequirements(); -$minorProblems = $symfonyRequirements->getFailedRecommendations(); -$hasMajorProblems = (bool) count($majorProblems); -$hasMinorProblems = (bool) count($minorProblems); - -?> - - - - - - Symfony Configuration Checker - - - -
-
- - - -
- -
-
-
-

Configuration Checker

-

- This script analyzes your system to check whether is - ready to run Symfony applications. -

- - -

Major problems

-

Major problems have been detected and must be fixed before continuing:

-
    - -
  1. getTestMessage() ?> -

    getHelpHtml() ?>

    -
  2. - -
- - - -

Recommendations

-

- Additionally, toTo enhance your Symfony experience, - it’s recommended that you fix the following: -

-
    - -
  1. getTestMessage() ?> -

    getHelpHtml() ?>

    -
  2. - -
- - - hasPhpIniConfigIssue()): ?> -

* - getPhpIniConfigPath()): ?> - Changes to the php.ini file must be done in "getPhpIniConfigPath() ?>". - - To change settings, create a "php.ini". - -

- - - -

All checks passed successfully. Your system is ready to run Symfony applications.

- - - -
-
-
-
Symfony Standard Edition
-
- - diff --git a/web/favicon.ico b/web/favicon.ico deleted file mode 100644 index 479f7f5..0000000 Binary files a/web/favicon.ico and /dev/null differ diff --git a/web/robots.txt b/web/robots.txt deleted file mode 100644 index 4665fca..0000000 --- a/web/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# www.robotstxt.org/ -# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449 - -User-agent: * -Disallow: