├── README.md ├── _config.yml ├── app ├── application │ ├── Bootstrap.php │ ├── Service.php │ ├── controllers │ │ ├── Api.php │ │ └── Index.php │ ├── models │ │ ├── Account.php │ │ ├── Product.php │ │ ├── Test.php │ │ └── Test2.php │ ├── modules │ │ └── User │ │ │ └── controllers │ │ │ └── Index.php │ └── views │ │ └── index │ │ └── index.phtml └── conf │ ├── app.php │ ├── application.ini │ └── config.php ├── composer.json ├── composer.lock ├── public ├── .htaccess └── index.php └── vendor ├── autoload.php ├── composer ├── ClassLoader.php ├── autoload_classmap.php ├── autoload_files.php ├── autoload_namespaces.php ├── autoload_psr4.php ├── autoload_real.php └── installed.json ├── doctrine └── cache │ ├── .coveralls.yml │ ├── .gitignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── UPGRADE.md │ ├── build.properties │ ├── build.xml │ ├── composer.json │ ├── lib │ └── Doctrine │ │ └── Common │ │ └── Cache │ │ ├── ApcCache.php │ │ ├── ArrayCache.php │ │ ├── Cache.php │ │ ├── CacheProvider.php │ │ ├── ChainCache.php │ │ ├── ClearableCache.php │ │ ├── CouchbaseCache.php │ │ ├── FileCache.php │ │ ├── FilesystemCache.php │ │ ├── FlushableCache.php │ │ ├── MemcacheCache.php │ │ ├── MemcachedCache.php │ │ ├── MongoDBCache.php │ │ ├── MultiGetCache.php │ │ ├── PhpFileCache.php │ │ ├── PredisCache.php │ │ ├── RedisCache.php │ │ ├── RiakCache.php │ │ ├── SQLite3Cache.php │ │ ├── Version.php │ │ ├── WinCacheCache.php │ │ ├── XcacheCache.php │ │ └── ZendDataCache.php │ ├── phpunit.xml.dist │ └── tests │ ├── Doctrine │ └── Tests │ │ ├── Common │ │ └── Cache │ │ │ ├── ApcCacheTest.php │ │ │ ├── ArrayCacheTest.php │ │ │ ├── BaseFileCacheTest.php │ │ │ ├── CacheTest.php │ │ │ ├── ChainCacheTest.php │ │ │ ├── CouchbaseCacheTest.php │ │ │ ├── FileCacheTest.php │ │ │ ├── FilesystemCacheTest.php │ │ │ ├── MemcacheCacheTest.php │ │ │ ├── MemcachedCacheTest.php │ │ │ ├── MongoDBCacheTest.php │ │ │ ├── PhpFileCacheTest.php │ │ │ ├── PredisCacheTest.php │ │ │ ├── RedisCacheTest.php │ │ │ ├── RiakCacheTest.php │ │ │ ├── SQLite3CacheTest.php │ │ │ ├── WinCacheCacheTest.php │ │ │ ├── XcacheCacheTest.php │ │ │ └── ZendDataCacheTest.php │ │ ├── DoctrineTestCase.php │ │ └── TestInit.php │ └── travis │ ├── php.ini │ └── phpunit.travis.xml ├── illuminate ├── container │ └── Illuminate │ │ └── Container │ │ ├── Container.php │ │ └── composer.json ├── database │ └── Illuminate │ │ └── Database │ │ ├── Capsule │ │ └── Manager.php │ │ ├── Connection.php │ │ ├── ConnectionInterface.php │ │ ├── ConnectionResolver.php │ │ ├── ConnectionResolverInterface.php │ │ ├── Connectors │ │ ├── ConnectionFactory.php │ │ ├── Connector.php │ │ ├── ConnectorInterface.php │ │ ├── MySqlConnector.php │ │ ├── PostgresConnector.php │ │ ├── SQLiteConnector.php │ │ └── SqlServerConnector.php │ │ ├── Console │ │ ├── Migrations │ │ │ ├── BaseCommand.php │ │ │ ├── InstallCommand.php │ │ │ ├── MigrateCommand.php │ │ │ ├── MigrateMakeCommand.php │ │ │ ├── RefreshCommand.php │ │ │ ├── ResetCommand.php │ │ │ └── RollbackCommand.php │ │ └── SeedCommand.php │ │ ├── DatabaseManager.php │ │ ├── DatabaseServiceProvider.php │ │ ├── Eloquent │ │ ├── Builder.php │ │ ├── Collection.php │ │ ├── MassAssignmentException.php │ │ ├── Model.php │ │ ├── ModelNotFoundException.php │ │ └── Relations │ │ │ ├── BelongsTo.php │ │ │ ├── BelongsToMany.php │ │ │ ├── HasMany.php │ │ │ ├── HasManyThrough.php │ │ │ ├── HasOne.php │ │ │ ├── HasOneOrMany.php │ │ │ ├── MorphMany.php │ │ │ ├── MorphOne.php │ │ │ ├── MorphOneOrMany.php │ │ │ ├── MorphPivot.php │ │ │ ├── MorphTo.php │ │ │ ├── MorphToMany.php │ │ │ ├── Pivot.php │ │ │ └── Relation.php │ │ ├── Grammar.php │ │ ├── MigrationServiceProvider.php │ │ ├── Migrations │ │ ├── DatabaseMigrationRepository.php │ │ ├── Migration.php │ │ ├── MigrationCreator.php │ │ ├── MigrationRepositoryInterface.php │ │ ├── Migrator.php │ │ └── stubs │ │ │ ├── blank.stub │ │ │ ├── create.stub │ │ │ └── update.stub │ │ ├── MySqlConnection.php │ │ ├── PostgresConnection.php │ │ ├── Query │ │ ├── Builder.php │ │ ├── Expression.php │ │ ├── Grammars │ │ │ ├── Grammar.php │ │ │ ├── MySqlGrammar.php │ │ │ ├── PostgresGrammar.php │ │ │ ├── SQLiteGrammar.php │ │ │ └── SqlServerGrammar.php │ │ ├── JoinClause.php │ │ └── Processors │ │ │ ├── MySqlProcessor.php │ │ │ ├── PostgresProcessor.php │ │ │ ├── Processor.php │ │ │ ├── SQLiteProcessor.php │ │ │ └── SqlServerProcessor.php │ │ ├── QueryException.php │ │ ├── README.md │ │ ├── SQLiteConnection.php │ │ ├── Schema │ │ ├── Blueprint.php │ │ ├── Builder.php │ │ ├── Grammars │ │ │ ├── Grammar.php │ │ │ ├── MySqlGrammar.php │ │ │ ├── PostgresGrammar.php │ │ │ ├── SQLiteGrammar.php │ │ │ └── SqlServerGrammar.php │ │ └── MySqlBuilder.php │ │ ├── SeedServiceProvider.php │ │ ├── Seeder.php │ │ ├── SqlServerConnection.php │ │ └── composer.json ├── events │ └── Illuminate │ │ └── Events │ │ ├── Dispatcher.php │ │ ├── EventServiceProvider.php │ │ ├── Subscriber.php │ │ └── composer.json └── support │ └── Illuminate │ └── Support │ ├── ClassLoader.php │ ├── Collection.php │ ├── Contracts │ ├── ArrayableInterface.php │ ├── JsonableInterface.php │ ├── MessageProviderInterface.php │ ├── RenderableInterface.php │ └── ResponsePreparerInterface.php │ ├── Facades │ ├── App.php │ ├── Artisan.php │ ├── Auth.php │ ├── Blade.php │ ├── Cache.php │ ├── Config.php │ ├── Cookie.php │ ├── Crypt.php │ ├── DB.php │ ├── Event.php │ ├── Facade.php │ ├── File.php │ ├── Form.php │ ├── HTML.php │ ├── Hash.php │ ├── Input.php │ ├── Lang.php │ ├── Log.php │ ├── Mail.php │ ├── Paginator.php │ ├── Password.php │ ├── Queue.php │ ├── Redirect.php │ ├── Redis.php │ ├── Request.php │ ├── Response.php │ ├── Route.php │ ├── SSH.php │ ├── Schema.php │ ├── Session.php │ ├── URL.php │ ├── Validator.php │ └── View.php │ ├── Fluent.php │ ├── Manager.php │ ├── MessageBag.php │ ├── NamespacedItemResolver.php │ ├── Pluralizer.php │ ├── SerializableClosure.php │ ├── ServiceProvider.php │ ├── Str.php │ ├── composer.json │ └── helpers.php ├── iran ├── irpackagist3 │ ├── README.md │ ├── composer.json │ └── lib │ │ └── Iran │ │ └── Funccc │ │ └── StringHelp.php └── test │ ├── README.md │ ├── composer.json │ └── lib │ └── Iran │ └── Func │ └── StringHelp.php ├── nesbot └── carbon │ ├── .editorconfig │ ├── LICENSE │ ├── composer.json │ ├── phpunit.xml.dist │ ├── readme.md │ ├── src │ └── Carbon │ │ ├── Carbon.php │ │ ├── CarbonInterval.php │ │ └── Lang │ │ ├── ar.php │ │ ├── bg.php │ │ ├── ca.php │ │ ├── cs.php │ │ ├── da.php │ │ ├── de.php │ │ ├── el.php │ │ ├── en.php │ │ ├── eo.php │ │ ├── es.php │ │ ├── eu │ │ ├── fi.php │ │ ├── fr.php │ │ ├── hr.php │ │ ├── hu.php │ │ ├── id.php │ │ ├── it.php │ │ ├── ja.php │ │ ├── ko.php │ │ ├── lt.php │ │ ├── nl.php │ │ ├── no.php │ │ ├── pl.php │ │ ├── pt.php │ │ ├── pt_BR.php │ │ ├── ro.php │ │ ├── ru.php │ │ ├── sk.php │ │ ├── sl.php │ │ ├── sr.php │ │ ├── sv.php │ │ ├── th.php │ │ ├── tr.php │ │ ├── uk.php │ │ ├── vi.php │ │ ├── zh-TW.php │ │ └── zh.php │ └── tests │ ├── AddTest.php │ ├── CarbonIntervalAddTest.php │ ├── CarbonIntervalConstructTest.php │ ├── CarbonIntervalForHumansTest.php │ ├── CarbonIntervalGettersTest.php │ ├── CarbonIntervalSettersTest.php │ ├── ComparisonTest.php │ ├── ConstructTest.php │ ├── CopyTest.php │ ├── CreateFromDateTest.php │ ├── CreateFromFormatTest.php │ ├── CreateFromTimeTest.php │ ├── CreateFromTimestampTest.php │ ├── CreateTest.php │ ├── DayOfWeekModifiersTest.php │ ├── DiffTest.php │ ├── FluidSettersTest.php │ ├── GettersTest.php │ ├── InstanceTest.php │ ├── IsTest.php │ ├── IssetTest.php │ ├── LocalizationTest.php │ ├── NowAndOtherStaticHelpersTest.php │ ├── RelativeTest.php │ ├── SettersTest.php │ ├── StartEndOfTest.php │ ├── StringsTest.php │ ├── SubTest.php │ ├── TestFixture.php │ └── TestingAidsTest.php └── symfony └── translation └── Symfony └── Component └── Translation ├── .gitignore ├── CHANGELOG.md ├── Catalogue ├── AbstractOperation.php ├── DiffOperation.php ├── MergeOperation.php └── OperationInterface.php ├── Dumper ├── CsvFileDumper.php ├── DumperInterface.php ├── FileDumper.php ├── IcuResFileDumper.php ├── IniFileDumper.php ├── JsonFileDumper.php ├── MoFileDumper.php ├── PhpFileDumper.php ├── PoFileDumper.php ├── QtFileDumper.php ├── XliffFileDumper.php └── YamlFileDumper.php ├── Exception ├── ExceptionInterface.php ├── InvalidResourceException.php └── NotFoundResourceException.php ├── Extractor ├── ChainExtractor.php └── ExtractorInterface.php ├── IdentityTranslator.php ├── Interval.php ├── LICENSE ├── Loader ├── ArrayLoader.php ├── CsvFileLoader.php ├── IcuDatFileLoader.php ├── IcuResFileLoader.php ├── IniFileLoader.php ├── JsonFileLoader.php ├── LoaderInterface.php ├── MoFileLoader.php ├── PhpFileLoader.php ├── PoFileLoader.php ├── QtFileLoader.php ├── XliffFileLoader.php ├── YamlFileLoader.php └── schema │ └── dic │ └── xliff-core │ ├── xliff-core-1.2-strict.xsd │ └── xml.xsd ├── LoggingTranslator.php ├── MessageCatalogue.php ├── MessageCatalogueInterface.php ├── MessageSelector.php ├── MetadataAwareInterface.php ├── PluralizationRules.php ├── README.md ├── Tests ├── Catalogue │ ├── AbstractOperationTest.php │ ├── DiffOperationTest.php │ └── MergeOperationTest.php ├── Dumper │ ├── CsvFileDumperTest.php │ ├── FileDumperTest.php │ ├── IcuResFileDumperTest.php │ ├── IniFileDumperTest.php │ ├── JsonFileDumperTest.php │ ├── MoFileDumperTest.php │ ├── PhpFileDumperTest.php │ ├── PoFileDumperTest.php │ ├── QtFileDumperTest.php │ ├── XliffFileDumperTest.php │ └── YamlFileDumperTest.php ├── IdentityTranslatorTest.php ├── IntervalTest.php ├── Loader │ ├── CsvFileLoaderTest.php │ ├── IcuDatFileLoaderTest.php │ ├── IcuResFileLoaderTest.php │ ├── IniFileLoaderTest.php │ ├── JsonFileLoaderTest.php │ ├── LocalizedTestCase.php │ ├── MoFileLoaderTest.php │ ├── PhpFileLoaderTest.php │ ├── PoFileLoaderTest.php │ ├── QtFileLoaderTest.php │ ├── XliffFileLoaderTest.php │ └── YamlFileLoaderTest.php ├── LoggingTranslatorTest.php ├── MessageCatalogueTest.php ├── MessageSelectorTest.php ├── PluralizationRulesTest.php ├── TranslatorCacheTest.php ├── TranslatorTest.php └── fixtures │ ├── empty-translation.mo │ ├── empty-translation.po │ ├── empty.csv │ ├── empty.ini │ ├── empty.json │ ├── empty.mo │ ├── empty.po │ ├── empty.xlf │ ├── empty.yml │ ├── encoding.xlf │ ├── escaped-id-plurals.po │ ├── escaped-id.po │ ├── invalid-xml-resources.xlf │ ├── malformed.json │ ├── non-valid.xlf │ ├── non-valid.yml │ ├── plurals.mo │ ├── plurals.po │ ├── resname.xlf │ ├── resourcebundle │ ├── corrupted │ │ └── resources.dat │ ├── dat │ │ ├── en.res │ │ ├── en.txt │ │ ├── fr.res │ │ ├── fr.txt │ │ ├── packagelist.txt │ │ └── resources.dat │ └── res │ │ └── en.res │ ├── resources-clean.xlf │ ├── resources.csv │ ├── resources.ini │ ├── resources.json │ ├── resources.mo │ ├── resources.php │ ├── resources.po │ ├── resources.ts │ ├── resources.xlf │ ├── resources.yml │ ├── valid.csv │ ├── withdoctype.xlf │ └── withnote.xlf ├── Translator.php ├── TranslatorBagInterface.php ├── TranslatorInterface.php ├── Writer └── TranslationWriter.php ├── composer.json └── phpunit.xml.dist /_config.yml: -------------------------------------------------------------------------------- 1 | markdown: redcarpet 2 | redcarpet: 3 | extensions: ["fenced_code_blocks", "autolink", "tables", "strikethrough"] -------------------------------------------------------------------------------- /app/application/Service.php: -------------------------------------------------------------------------------- 1 | getRequest()->getRequestUri(); 9 | list($tmp,$module,$controller,$action) = explode('/', $uri); 10 | 11 | foreach ($params as $key => $value) { 12 | Yaf_Dispatcher::getInstance()->getRequest()->setParam($key,$value); 13 | } 14 | 15 | $request = new Yaf_Request_Simple("Api", $module, $controller, $action, $params); 16 | // $request = new Yaf_Request_Simple("Api", "User", "Index", "demo", array()); 17 | 18 | // Yaf_Dispatcher::getInstance()->getRequest()->setParam('uid',123456); 19 | 20 | $response = $app->bootstrap()->getDispatcher()->returnResponse(TRUE)->dispatch($request); 21 | // $response = $app->bootstrap()->getDispatcher()->dispatch($request); 22 | return $response->getBody(); 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /app/application/controllers/Api.php: -------------------------------------------------------------------------------- 1 | disableView();//禁用view 11 | $this->getView()->assign("content", "Hello World"); 12 | echo 'asdf'; 13 | 14 | 15 | 16 | // $cacheDriver = new \Doctrine\Common\Cache\ArrayCache(); 17 | 18 | 19 | // $cacheDriver->setMemcache($memcache); 20 | // $cacheDriver->save('cache_id', 'my_data'); 21 | } 22 | 23 | public function demoAction(){ 24 | // Yaf_Dispatcher::getInstance()->disableView(); 25 | // $service = new Yar_Server(new \Api\IndexController()); 26 | // $service->handle(); 27 | return false; 28 | } 29 | 30 | } 31 | 32 | 33 | ?> -------------------------------------------------------------------------------- /app/application/controllers/Index.php: -------------------------------------------------------------------------------- 1 | disableView();//禁用view 8 | $this->getView()->assign("content", "Hello World"); 9 | echo 'asdf'; 10 | 11 | 12 | // $cacheDriver = new \Doctrine\Common\Cache\ArrayCache(); 13 | 14 | 15 | // $cacheDriver->setMemcache($memcache); 16 | // $cacheDriver->save('cache_id', 'my_data'); 17 | } 18 | 19 | public function demoAction(){ 20 | Yaf_Dispatcher::getInstance()->disableView(); 21 | echo 'demo'; 22 | } 23 | 24 | } 25 | 26 | 27 | ?> -------------------------------------------------------------------------------- /app/application/models/Account.php: -------------------------------------------------------------------------------- 1 | where('aid', '=', 2)->get(); 13 | return $users; 14 | // return 'aaab'; 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /app/application/models/Product.php: -------------------------------------------------------------------------------- 1 | aid; 17 | } 18 | // public function getName() 19 | // { 20 | // return $this->username; 21 | // } 22 | // public function setName($name) 23 | // { 24 | // $this->username = $name; 25 | // } 26 | } -------------------------------------------------------------------------------- /app/application/models/Test.php: -------------------------------------------------------------------------------- 1 | where('aid', '=', 2)->get(); 13 | return $users; 14 | // return 'aaab'; 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /app/application/modules/User/controllers/Index.php: -------------------------------------------------------------------------------- 1 | disableView(); 6 | } 7 | 8 | public function getAction($uid=0){ 9 | $uid = $this->getRequest()->getParam('uid',0); 10 | $response = 'Get Uid:'.$uid; 11 | $this->getResponse()->setBody($response); 12 | } 13 | 14 | public function delAction($uid=0){ 15 | $uid = $this->getRequest()->getParam('uid',0); 16 | $response = 'Del Uid:'.$uid; 17 | $this->getResponse()->setBody($response); 18 | } 19 | 20 | 21 | 22 | } -------------------------------------------------------------------------------- /app/application/views/index/index.phtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello World 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/conf/app.php: -------------------------------------------------------------------------------- 1 | array( 7 | 'DB'=>'Illuminate\Database\Capsule\Manager', 8 | 'Cache'=>'Illuminate\Support\Facades\Cache', 9 | 'StrHelp'=>'\Iran\Func\StringHelp', 10 | ), 11 | ); -------------------------------------------------------------------------------- /app/conf/application.ini: -------------------------------------------------------------------------------- 1 | [product] 2 | ;支持直接写PHP中的已定义常量 3 | application.directory = APP_PATH "/application/" 4 | application.dispatcher.defaultModule = "Index" 5 | application.dispatcher.defaultController = "Index" 6 | application.dispatcher.defaultAction = "index" 7 | application.modules = "Index,Admin,Outer,User" 8 | 9 | -------------------------------------------------------------------------------- /app/conf/config.php: -------------------------------------------------------------------------------- 1 | array( 5 | //default connect 6 | 'default' => array( 7 | 'driver' => 'mysql', 8 | 'host' => '', 9 | 'database' => '', 10 | 'username' => '', 11 | 'password' => '', 12 | 'charset' => 'utf8', 13 | 'collation' => 'utf8_unicode_ci', 14 | 'prefix' => '', 15 | ), 16 | 'enWriteDb' => array( 17 | 'driver' => 'mysql', 18 | 'host' => '', 19 | 'database' => '', 20 | 'username' => '', 21 | 'password' => '', 22 | 'charset' => 'utf8', 23 | 'collation' => 'utf8_unicode_ci', 24 | 'prefix' => '', 25 | ), 26 | ), 27 | // 'memcached' => array( 28 | // array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100), 29 | // array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100), 30 | // ), 31 | // 'cache'=>array( 32 | // 'driver' => 'file', 33 | // 'path' => storage_path().'/cache', 34 | // 'connection' => null, 35 | // 'table' => 'cache', 36 | // 'memcached' => array( 37 | // array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100), 38 | // ), 39 | // 'prefix' => 'gc_', 40 | // ), 41 | ); 42 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "illuminate/database": "4.1.30", 4 | "doctrine/cache": "1.4.0", 5 | "iran/test": "1.0", 6 | "iran/irpackagist3": "1.0" 7 | }, 8 | "repositories": [ 9 | { 10 | "type": "vcs", 11 | "url": "https://bitbucket.org/iranw/test" 12 | } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | #.htaccess, 当然也可以写在httpd.conf 2 | RewriteEngine On 3 | RewriteCond %{REQUEST_FILENAME} !-f 4 | RewriteRule .* index.php -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | handle(); 15 | }else{ 16 | $app = new Yaf_Application(APP_PATH . "/conf/application.ini"); 17 | 18 | $params = array(); 19 | if (Yaf_Dispatcher::getInstance()->getRequest()->isGet()) { 20 | $params = Yaf_Dispatcher::getInstance()->getRequest()->getQuery(); 21 | }else{ 22 | $params = Yaf_Dispatcher::getInstance()->getRequest()->getPost(); 23 | } 24 | foreach ($params as $key => $value) { 25 | Yaf_Dispatcher::getInstance()->getRequest()->setParam($key,$value); 26 | } 27 | 28 | $app->bootstrap()->run(); 29 | } 30 | 31 | $end = microtime(true); 32 | $time=($end-$start)*1000; 33 | // echo "\n
".$time.'ms'; 34 | // echo number_format($time, 10, '.', "); -------------------------------------------------------------------------------- /vendor/autoload.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/symfony/translation'), 10 | 'Iran\\Funccc\\' => array($vendorDir . '/iran/irpackagist3/lib'), 11 | 'Iran\\Func\\' => array($vendorDir . '/iran/test/lib'), 12 | 'Illuminate\\Support' => array($vendorDir . '/illuminate/support'), 13 | 'Illuminate\\Events' => array($vendorDir . '/illuminate/events'), 14 | 'Illuminate\\Database' => array($vendorDir . '/illuminate/database'), 15 | 'Illuminate\\Container' => array($vendorDir . '/illuminate/container'), 16 | 'Doctrine\\Common\\Cache\\' => array($vendorDir . '/doctrine/cache/lib'), 17 | 'Carbon' => array($vendorDir . '/nesbot/carbon/src'), 18 | ); 19 | -------------------------------------------------------------------------------- /vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | > ./tests/travis/php.ini ;fi" 19 | - composer self-update 20 | - composer --prefer-source --dev install 21 | - sh -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ]; then phpenv config-add ./tests/travis/php.ini; fi" 22 | 23 | script: 24 | - ./vendor/bin/phpunit -c ./tests/travis/phpunit.travis.xml -v 25 | 26 | after_script: 27 | - php vendor/bin/coveralls -v 28 | 29 | matrix: 30 | allow_failures: 31 | - php: hhvm 32 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006-2012 Doctrine Project 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 7 | of the Software, and to permit persons to whom the Software is furnished to do 8 | so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/README.md: -------------------------------------------------------------------------------- 1 | # Doctrine Cache 2 | 3 | Master: [![Build Status](https://secure.travis-ci.org/doctrine/cache.png?branch=master)](http://travis-ci.org/doctrine/cache) [![Coverage Status](https://coveralls.io/repos/doctrine/cache/badge.png?branch=master)](https://coveralls.io/r/doctrine/cache?branch=master) 4 | 5 | [![Latest Stable Version](https://poser.pugx.org/doctrine/cache/v/stable.png)](https://packagist.org/packages/doctrine/cache) [![Total Downloads](https://poser.pugx.org/doctrine/cache/downloads.png)](https://packagist.org/packages/doctrine/cache) 6 | 7 | Cache component extracted from the Doctrine Common project. 8 | 9 | ## Changelog 10 | 11 | ### v1.2 12 | 13 | * Added support for MongoDB as Cache Provider 14 | * Fix namespace version reset 15 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/UPGRADE.md: -------------------------------------------------------------------------------- 1 | # Upgrade to 1.4 2 | 3 | ## Minor BC Break: `Doctrine\Common\Cache\FileCache#$extension` is now `private`. 4 | 5 | If you need to override the value of `Doctrine\Common\Cache\FileCache#$extension`, then use the 6 | second parameter of `Doctrine\Common\Cache\FileCache#__construct()` instead of overriding 7 | the property in your own implementation. 8 | 9 | ## Minor BC Break: file based caches paths changed 10 | 11 | `Doctrine\Common\Cache\FileCache`, `Doctrine\Common\Cache\PhpFileCache` and 12 | `Doctrine\Common\Cache\FilesystemCache` are using a different cache paths structure. 13 | 14 | If you rely on warmed up caches for deployments, consider that caches generated 15 | with `doctrine/cache` `<1.4` are not compatible with the new directory structure, 16 | and will be ignored. 17 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/build.properties: -------------------------------------------------------------------------------- 1 | # Version class and file 2 | project.version_class = Doctrine\\Common\\Cache\\Version 3 | project.version_file = lib/Doctrine/Common/Cache/Version.php 4 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "doctrine/cache", 3 | "type": "library", 4 | "description": "Caching library offering an object-oriented API for many cache backends", 5 | "keywords": ["cache", "caching"], 6 | "homepage": "http://www.doctrine-project.org", 7 | "license": "MIT", 8 | "authors": [ 9 | {"name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com"}, 10 | {"name": "Roman Borschel", "email": "roman@code-factory.org"}, 11 | {"name": "Benjamin Eberlei", "email": "kontakt@beberlei.de"}, 12 | {"name": "Jonathan Wage", "email": "jonwage@gmail.com"}, 13 | {"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"} 14 | ], 15 | "require": { 16 | "php": ">=5.3.2" 17 | }, 18 | "require-dev": { 19 | "phpunit/phpunit": ">=3.7", 20 | "satooshi/php-coveralls": "~0.6", 21 | "predis/predis": "~0.8" 22 | }, 23 | "conflict": { 24 | "doctrine/common": ">2.2,<2.4" 25 | }, 26 | "autoload": { 27 | "psr-0": { "Doctrine\\Common\\Cache\\": "lib/" } 28 | }, 29 | "extra": { 30 | "branch-alias": { 31 | "dev-master": "1.4.x-dev" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/lib/Doctrine/Common/Cache/ClearableCache.php: -------------------------------------------------------------------------------- 1 | . 18 | */ 19 | 20 | namespace Doctrine\Common\Cache; 21 | 22 | /** 23 | * Interface for cache that can be flushed. 24 | * 25 | * @link www.doctrine-project.org 26 | * @since 1.4 27 | * @author Adirelle 28 | */ 29 | interface ClearableCache 30 | { 31 | /** 32 | * Deletes all cache entries. 33 | * 34 | * @return boolean TRUE if the cache entries were successfully deleted, FALSE otherwise. 35 | */ 36 | public function deleteAll(); 37 | } 38 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/lib/Doctrine/Common/Cache/FlushableCache.php: -------------------------------------------------------------------------------- 1 | . 18 | */ 19 | 20 | namespace Doctrine\Common\Cache; 21 | 22 | /** 23 | * Interface for cache that can be flushed. 24 | * 25 | * @link www.doctrine-project.org 26 | * @since 1.4 27 | * @author Adirelle 28 | */ 29 | interface FlushableCache 30 | { 31 | /** 32 | * Flushes all cache entries. 33 | * 34 | * @return boolean TRUE if the cache entries were successfully flushed, FALSE otherwise. 35 | */ 36 | public function flushAll(); 37 | } 38 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/lib/Doctrine/Common/Cache/Version.php: -------------------------------------------------------------------------------- 1 | . 18 | */ 19 | 20 | namespace Doctrine\Common\Cache; 21 | 22 | class Version 23 | { 24 | const VERSION = '1.4.0-DEV'; 25 | } 26 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 16 | ./tests/Doctrine/ 17 | 18 | 19 | 20 | 21 | 22 | ./lib/Doctrine/ 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ApcCacheTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('The ' . __CLASS__ .' requires the use of APC'); 13 | } 14 | } 15 | 16 | protected function _getCacheDriver() 17 | { 18 | return new ApcCache(); 19 | } 20 | } -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ArrayCacheTest.php: -------------------------------------------------------------------------------- 1 | _getCacheDriver(); 17 | $stats = $cache->getStats(); 18 | 19 | $this->assertNull($stats); 20 | } 21 | 22 | protected function isSharedStorage() 23 | { 24 | return false; 25 | } 26 | } -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/BaseFileCacheTest.php: -------------------------------------------------------------------------------- 1 | directory = sys_get_temp_dir() . '/doctrine_cache_'. uniqid(); 16 | } while (file_exists($this->directory)); 17 | } 18 | 19 | public function tearDown() 20 | { 21 | if ( ! is_dir($this->directory)) { 22 | return; 23 | } 24 | 25 | $iterator = new RecursiveDirectoryIterator($this->directory); 26 | 27 | foreach (new RecursiveIteratorIterator($iterator, RecursiveIteratorIterator::CHILD_FIRST) as $file) { 28 | if ($file->isFile()) { 29 | @unlink($file->getRealPath()); 30 | } elseif ($file->isDir()) { 31 | @rmdir($file->getRealPath()); 32 | } 33 | } 34 | } 35 | 36 | protected function isSharedStorage() 37 | { 38 | return false; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CouchbaseCacheTest.php: -------------------------------------------------------------------------------- 1 | couchbase = new Couchbase('127.0.0.1', 'Administrator', 'password', 'default'); 17 | } catch(Exception $ex) { 18 | $this->markTestSkipped('Could not instantiate the Couchbase cache because of: ' . $ex); 19 | } 20 | } else { 21 | $this->markTestSkipped('The ' . __CLASS__ .' requires the use of the couchbase extension'); 22 | } 23 | } 24 | 25 | public function testNoExpire() 26 | { 27 | $cache = $this->_getCacheDriver(); 28 | $cache->save('noexpire', 'value', 0); 29 | sleep(1); 30 | $this->assertTrue($cache->contains('noexpire'), 'Couchbase provider should support no-expire'); 31 | } 32 | 33 | public function testLongLifetime() 34 | { 35 | $cache = $this->_getCacheDriver(); 36 | $cache->save('key', 'value', 30 * 24 * 3600 + 1); 37 | 38 | $this->assertTrue($cache->contains('key'), 'Couchbase provider should support TTL > 30 days'); 39 | } 40 | 41 | protected function _getCacheDriver() 42 | { 43 | $driver = new CouchbaseCache(); 44 | $driver->setCouchbase($this->couchbase); 45 | return $driver; 46 | } 47 | } -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcacheCacheTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('The ' . __CLASS__ .' requires the use of memcache'); 16 | } 17 | 18 | $this->memcache = new Memcache(); 19 | 20 | if (@$this->memcache->connect('localhost', 11211) === false) { 21 | unset($this->memcache); 22 | $this->markTestSkipped('The ' . __CLASS__ .' cannot connect to memcache'); 23 | } 24 | } 25 | 26 | public function tearDown() 27 | { 28 | if ($this->memcache instanceof Memcache) { 29 | $this->memcache->flush(); 30 | } 31 | } 32 | 33 | public function testNoExpire() 34 | { 35 | $cache = $this->_getCacheDriver(); 36 | $cache->save('noexpire', 'value', 0); 37 | sleep(1); 38 | $this->assertTrue($cache->contains('noexpire'), 'Memcache provider should support no-expire'); 39 | } 40 | 41 | public function testLongLifetime() 42 | { 43 | $cache = $this->_getCacheDriver(); 44 | $cache->save('key', 'value', 30 * 24 * 3600 + 1); 45 | $this->assertTrue($cache->contains('key'), 'Memcache provider should support TTL > 30 days'); 46 | } 47 | 48 | protected function _getCacheDriver() 49 | { 50 | $driver = new MemcacheCache(); 51 | $driver->setMemcache($this->memcache); 52 | return $driver; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/PredisCacheTest.php: -------------------------------------------------------------------------------- 1 | client = new Client(); 16 | 17 | try { 18 | $this->client->connect(); 19 | } catch (ConnectionException $e) { 20 | $this->markTestSkipped('The ' . __CLASS__ .' requires the use of redis'); 21 | } 22 | } 23 | 24 | /** 25 | * @return PredisCache 26 | */ 27 | protected function _getCacheDriver() 28 | { 29 | return new PredisCache($this->client); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RedisCacheTest.php: -------------------------------------------------------------------------------- 1 | _redis = new \Redis(); 15 | $ok = @$this->_redis->connect('127.0.0.1'); 16 | if (!$ok) { 17 | $this->markTestSkipped('The ' . __CLASS__ .' requires the use of redis'); 18 | } 19 | } else { 20 | $this->markTestSkipped('The ' . __CLASS__ .' requires the use of redis'); 21 | } 22 | } 23 | 24 | protected function _getCacheDriver() 25 | { 26 | $driver = new RedisCache(); 27 | $driver->setRedis($this->_redis); 28 | return $driver; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RiakCacheTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('The ' . __CLASS__ .' requires the use of Riak'); 34 | } 35 | 36 | try { 37 | $this->connection = new Connection('127.0.0.1', 8087); 38 | $this->bucket = new Bucket($this->connection, 'test'); 39 | } catch (Exception\RiakException $e) { 40 | $this->markTestSkipped('The ' . __CLASS__ .' requires the use of Riak'); 41 | } 42 | } 43 | 44 | /** 45 | * {@inheritdoc} 46 | */ 47 | public function testGetStats() 48 | { 49 | $cache = $this->_getCacheDriver(); 50 | $stats = $cache->getStats(); 51 | 52 | $this->assertNull($stats); 53 | } 54 | 55 | /** 56 | * Retrieve RiakCache instance. 57 | * 58 | * @return \Doctrine\Common\Cache\RiakCache 59 | */ 60 | protected function _getCacheDriver() 61 | { 62 | return new RiakCache($this->bucket); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/SQLite3CacheTest.php: -------------------------------------------------------------------------------- 1 | file = tempnam(null, 'doctrine-cache-test-'); 19 | unlink($this->file); 20 | $this->sqlite = new SQLite3($this->file); 21 | } 22 | 23 | protected function tearDown() 24 | { 25 | unlink($this->file); 26 | } 27 | 28 | public function testGetStats() 29 | { 30 | $this->assertNull($this->_getCacheDriver()->getStats()); 31 | } 32 | 33 | protected function _getCacheDriver() 34 | { 35 | return new SQLite3Cache($this->sqlite, 'test_table'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/WinCacheCacheTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('The ' . __CLASS__ .' requires the use of Wincache'); 13 | } 14 | } 15 | 16 | protected function _getCacheDriver() 17 | { 18 | return new WincacheCache(); 19 | } 20 | } -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/XcacheCacheTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('The ' . __CLASS__ .' requires the use of xcache'); 13 | } 14 | } 15 | 16 | protected function _getCacheDriver() 17 | { 18 | return new XcacheCache(); 19 | } 20 | } -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ZendDataCacheTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('The ' . __CLASS__ .' requires the use of Zend Data Cache which only works in apache2handler SAPI'); 13 | } 14 | } 15 | 16 | public function testGetStats() 17 | { 18 | $cache = $this->_getCacheDriver(); 19 | $stats = $cache->getStats(); 20 | 21 | $this->assertNull($stats); 22 | } 23 | 24 | protected function _getCacheDriver() 25 | { 26 | return new ZendDataCache(); 27 | } 28 | } -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/Doctrine/Tests/DoctrineTestCase.php: -------------------------------------------------------------------------------- 1 | add('Doctrine\\Tests\\', __DIR__ . '/../../'); 19 | unset($classLoader); 20 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/travis/php.ini: -------------------------------------------------------------------------------- 1 | extension="mongo.so" 2 | extension="memcache.so" 3 | extension="memcached.so" 4 | 5 | apc.enabled=1 6 | apc.enable_cli=1 7 | -------------------------------------------------------------------------------- /vendor/doctrine/cache/tests/travis/phpunit.travis.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | ../Doctrine/ 21 | 22 | 23 | 24 | 25 | 26 | ../../lib/Doctrine/ 27 | 28 | 29 | 30 | 31 | 32 | performance 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /vendor/illuminate/container/Illuminate/Container/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "illuminate/container", 3 | "license": "MIT", 4 | "authors": [ 5 | { 6 | "name": "Taylor Otwell", 7 | "email": "taylorotwell@gmail.com" 8 | } 9 | ], 10 | "require": { 11 | "php": ">=5.3.0" 12 | }, 13 | "require-dev": { 14 | "phpunit/phpunit": "4.0.*" 15 | }, 16 | "autoload": { 17 | "psr-0": { 18 | "Illuminate\\Container": "" 19 | } 20 | }, 21 | "target-dir": "Illuminate/Container", 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "4.1-dev" 25 | } 26 | }, 27 | "minimum-stability": "dev" 28 | } 29 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/ConnectionInterface.php: -------------------------------------------------------------------------------- 1 | PDO::CASE_NATURAL, 14 | PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, 15 | PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL, 16 | PDO::ATTR_STRINGIFY_FETCHES => false, 17 | PDO::ATTR_EMULATE_PREPARES => false, 18 | ); 19 | 20 | /** 21 | * Get the PDO options based on the configuration. 22 | * 23 | * @param array $config 24 | * @return array 25 | */ 26 | public function getOptions(array $config) 27 | { 28 | $options = array_get($config, 'options', array()); 29 | 30 | return array_diff_key($this->options, $options) + $options; 31 | } 32 | 33 | /** 34 | * Create a new PDO connection. 35 | * 36 | * @param string $dsn 37 | * @param array $config 38 | * @param array $options 39 | * @return PDO 40 | */ 41 | public function createConnection($dsn, array $config, array $options) 42 | { 43 | $username = array_get($config, 'username'); 44 | 45 | $password = array_get($config, 'password'); 46 | 47 | return new PDO($dsn, $username, $password, $options); 48 | } 49 | 50 | /** 51 | * Get the default PDO connection options. 52 | * 53 | * @return array 54 | */ 55 | public function getDefaultOptions() 56 | { 57 | return $this->options; 58 | } 59 | 60 | /** 61 | * Set the default PDO connection options. 62 | * 63 | * @param array $options 64 | * @return void 65 | */ 66 | public function setDefaultOptions(array $options) 67 | { 68 | $this->options = $options; 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Connectors/ConnectorInterface.php: -------------------------------------------------------------------------------- 1 | getOptions($config); 16 | 17 | // SQLite supports "in-memory" databases that only last as long as the owning 18 | // connection does. These are useful for tests or for short lifetime store 19 | // querying. In-memory databases may only have a single open connection. 20 | if ($config['database'] == ':memory:') 21 | { 22 | return $this->createConnection('sqlite::memory:', $config, $options); 23 | } 24 | 25 | $path = realpath($config['database']); 26 | 27 | // Here we'll verify that the SQLite database exists before going any further 28 | // as the developer probably wants to know if the database exists and this 29 | // SQLite driver will not throw any exception if it does not by default. 30 | if ($path === false) 31 | { 32 | throw new \InvalidArgumentException("Database does not exist."); 33 | } 34 | 35 | return $this->createConnection("sqlite:{$path}", $config, $options); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Console/Migrations/BaseCommand.php: -------------------------------------------------------------------------------- 1 | input->getOption('path'); 15 | 16 | // First, we will check to see if a path option has been defined. If it has 17 | // we will use the path relative to the root of this installation folder 18 | // so that migrations may be run for any path within the applications. 19 | if ( ! is_null($path)) 20 | { 21 | return $this->laravel['path.base'].'/'.$path; 22 | } 23 | 24 | $package = $this->input->getOption('package'); 25 | 26 | // If the package is in the list of migration paths we received we will put 27 | // the migrations in that path. Otherwise, we will assume the package is 28 | // is in the package directories and will place them in that location. 29 | if ( ! is_null($package)) 30 | { 31 | return $this->packagePath.'/'.$package.'/src/migrations'; 32 | } 33 | 34 | $bench = $this->input->getOption('bench'); 35 | 36 | // Finally we will check for the workbench option, which is a shortcut into 37 | // specifying the full path for a "workbench" project. Workbenches allow 38 | // developers to develop packages along side a "standard" app install. 39 | if ( ! is_null($bench)) 40 | { 41 | $path = "/workbench/{$bench}/src/migrations"; 42 | 43 | return $this->laravel['path.base'].$path; 44 | } 45 | 46 | return $this->laravel['path'].'/database/migrations'; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/DatabaseServiceProvider.php: -------------------------------------------------------------------------------- 1 | app['db']); 17 | 18 | Model::setEventDispatcher($this->app['events']); 19 | } 20 | 21 | /** 22 | * Register the service provider. 23 | * 24 | * @return void 25 | */ 26 | public function register() 27 | { 28 | // The connection factory is used to create the actual connection instances on 29 | // the database. We will inject the factory into the manager so that it may 30 | // make the connections while they are actually needed and not of before. 31 | $this->app->bindShared('db.factory', function($app) 32 | { 33 | return new ConnectionFactory($app); 34 | }); 35 | 36 | // The database manager is used to resolve various connections, since multiple 37 | // connections might be managed. It also implements the connection resolver 38 | // interface which may be used by other components requiring connections. 39 | $this->app->bindShared('db', function($app) 40 | { 41 | return new DatabaseManager($app, $app['db.factory']); 42 | }); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Eloquent/MassAssignmentException.php: -------------------------------------------------------------------------------- 1 | model = $model; 21 | 22 | $this->message = "No query results for model [{$model}]."; 23 | 24 | return $this; 25 | } 26 | 27 | /** 28 | * Get the affected Eloquent model. 29 | * 30 | * @return string 31 | */ 32 | public function getModel() 33 | { 34 | return $this->model; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Eloquent/Relations/HasMany.php: -------------------------------------------------------------------------------- 1 | query->get(); 15 | } 16 | 17 | /** 18 | * Initialize the relation on a set of models. 19 | * 20 | * @param array $models 21 | * @param string $relation 22 | * @return array 23 | */ 24 | public function initRelation(array $models, $relation) 25 | { 26 | foreach ($models as $model) 27 | { 28 | $model->setRelation($relation, $this->related->newCollection()); 29 | } 30 | 31 | return $models; 32 | } 33 | 34 | /** 35 | * Match the eagerly loaded results to their parents. 36 | * 37 | * @param array $models 38 | * @param \Illuminate\Database\Eloquent\Collection $results 39 | * @param string $relation 40 | * @return array 41 | */ 42 | public function match(array $models, Collection $results, $relation) 43 | { 44 | return $this->matchMany($models, $results, $relation); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Eloquent/Relations/HasOne.php: -------------------------------------------------------------------------------- 1 | query->first(); 15 | } 16 | 17 | /** 18 | * Initialize the relation on a set of models. 19 | * 20 | * @param array $models 21 | * @param string $relation 22 | * @return array 23 | */ 24 | public function initRelation(array $models, $relation) 25 | { 26 | foreach ($models as $model) 27 | { 28 | $model->setRelation($relation, null); 29 | } 30 | 31 | return $models; 32 | } 33 | 34 | /** 35 | * Match the eagerly loaded results to their parents. 36 | * 37 | * @param array $models 38 | * @param \Illuminate\Database\Eloquent\Collection $results 39 | * @param string $relation 40 | * @return array 41 | */ 42 | public function match(array $models, Collection $results, $relation) 43 | { 44 | return $this->matchOne($models, $results, $relation); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Eloquent/Relations/MorphMany.php: -------------------------------------------------------------------------------- 1 | query->get(); 15 | } 16 | 17 | /** 18 | * Initialize the relation on a set of models. 19 | * 20 | * @param array $models 21 | * @param string $relation 22 | * @return array 23 | */ 24 | public function initRelation(array $models, $relation) 25 | { 26 | foreach ($models as $model) 27 | { 28 | $model->setRelation($relation, $this->related->newCollection()); 29 | } 30 | 31 | return $models; 32 | } 33 | 34 | /** 35 | * Match the eagerly loaded results to their parents. 36 | * 37 | * @param array $models 38 | * @param \Illuminate\Database\Eloquent\Collection $results 39 | * @param string $relation 40 | * @return array 41 | */ 42 | public function match(array $models, Collection $results, $relation) 43 | { 44 | return $this->matchMany($models, $results, $relation); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Eloquent/Relations/MorphOne.php: -------------------------------------------------------------------------------- 1 | query->first(); 15 | } 16 | 17 | /** 18 | * Initialize the relation on a set of models. 19 | * 20 | * @param array $models 21 | * @param string $relation 22 | * @return array 23 | */ 24 | public function initRelation(array $models, $relation) 25 | { 26 | foreach ($models as $model) 27 | { 28 | $model->setRelation($relation, null); 29 | } 30 | 31 | return $models; 32 | } 33 | 34 | /** 35 | * Match the eagerly loaded results to their parents. 36 | * 37 | * @param array $models 38 | * @param \Illuminate\Database\Eloquent\Collection $results 39 | * @param string $relation 40 | * @return array 41 | */ 42 | public function match(array $models, Collection $results, $relation) 43 | { 44 | return $this->matchOne($models, $results, $relation); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Eloquent/Relations/MorphPivot.php: -------------------------------------------------------------------------------- 1 | where($this->morphType, $this->getAttribute($this->morphType)); 16 | 17 | return parent::setKeysForSaveQuery($query); 18 | } 19 | 20 | /** 21 | * Delete the pivot model record from the database. 22 | * 23 | * @return int 24 | */ 25 | public function delete() 26 | { 27 | $query = $this->getDeleteQuery(); 28 | 29 | $query->where($this->morphType, $this->getAttribute($this->morphType)); 30 | 31 | return $query->delete(); 32 | } 33 | 34 | /** 35 | * Set the morph type for the pivot. 36 | * 37 | * @param string $morphType 38 | * @return \Illuminate\Database\Eloquent\Relations\MorphPivot 39 | */ 40 | public function setMorphType($morphType) 41 | { 42 | $this->morphType = $morphType; 43 | 44 | return $this; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Migrations/Migration.php: -------------------------------------------------------------------------------- 1 | connection; 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Migrations/MigrationRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->timestamps(); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | * 25 | * @return void 26 | */ 27 | public function down() 28 | { 29 | Schema::drop('{{table}}'); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Migrations/stubs/update.stub: -------------------------------------------------------------------------------- 1 | schemaGrammar)) { $this->useDefaultSchemaGrammar(); } 18 | 19 | return new MySqlBuilder($this); 20 | } 21 | 22 | /** 23 | * Get the default query grammar instance. 24 | * 25 | * @return \Illuminate\Database\Query\Grammars\MySqlGrammar 26 | */ 27 | protected function getDefaultQueryGrammar() 28 | { 29 | return $this->withTablePrefix(new QueryGrammar); 30 | } 31 | 32 | /** 33 | * Get the default schema grammar instance. 34 | * 35 | * @return \Illuminate\Database\Schema\Grammars\MySqlGrammar 36 | */ 37 | protected function getDefaultSchemaGrammar() 38 | { 39 | return $this->withTablePrefix(new SchemaGrammar); 40 | } 41 | 42 | /** 43 | * Get the default post processor instance. 44 | * 45 | * @return \Illuminate\Database\Query\Processors\Processor 46 | */ 47 | protected function getDefaultPostProcessor() 48 | { 49 | return new Query\Processors\MySqlProcessor; 50 | } 51 | 52 | /** 53 | * Get the Doctrine DBAL driver. 54 | * 55 | * @return \Doctrine\DBAL\Driver\PDOMySql\Driver 56 | */ 57 | protected function getDoctrineDriver() 58 | { 59 | return new DoctrineDriver; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/PostgresConnection.php: -------------------------------------------------------------------------------- 1 | withTablePrefix(new QueryGrammar); 18 | } 19 | 20 | /** 21 | * Get the default schema grammar instance. 22 | * 23 | * @return \Illuminate\Database\Schema\Grammars\PostgresGrammar 24 | */ 25 | protected function getDefaultSchemaGrammar() 26 | { 27 | return $this->withTablePrefix(new SchemaGrammar); 28 | } 29 | 30 | /** 31 | * Get the default post processor instance. 32 | * 33 | * @return \Illuminate\Database\Query\Processors\PostgresProcessor 34 | */ 35 | protected function getDefaultPostProcessor() 36 | { 37 | return new PostgresProcessor; 38 | } 39 | 40 | /** 41 | * Get the Doctrine DBAL driver. 42 | * 43 | * @return \Doctrine\DBAL\Driver\PDOPgSql\Driver 44 | */ 45 | protected function getDoctrineDriver() 46 | { 47 | return new DoctrineDriver; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Query/Expression.php: -------------------------------------------------------------------------------- 1 | value = $value; 21 | } 22 | 23 | /** 24 | * Get the value of the expression. 25 | * 26 | * @return mixed 27 | */ 28 | public function getValue() 29 | { 30 | return $this->value; 31 | } 32 | 33 | /** 34 | * Get the value of the expression. 35 | * 36 | * @return string 37 | */ 38 | public function __toString() 39 | { 40 | return (string) $this->getValue(); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Query/Processors/MySqlProcessor.php: -------------------------------------------------------------------------------- 1 | column_name; }, $results); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Query/Processors/PostgresProcessor.php: -------------------------------------------------------------------------------- 1 | getConnection()->select($sql, $values); 19 | 20 | $sequence = $sequence ?: 'id'; 21 | 22 | $result = (array) $results[0]; 23 | 24 | $id = $result[$sequence]; 25 | 26 | return is_numeric($id) ? (int) $id : $id; 27 | } 28 | 29 | /** 30 | * Process the results of a column listing query. 31 | * 32 | * @param array $results 33 | * @return array 34 | */ 35 | public function processColumnListing($results) 36 | { 37 | return array_values(array_map(function($r) { return $r->column_name; }, $results)); 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Query/Processors/Processor.php: -------------------------------------------------------------------------------- 1 | getConnection()->insert($sql, $values); 31 | 32 | $id = $query->getConnection()->getPdo()->lastInsertId($sequence); 33 | 34 | return is_numeric($id) ? (int) $id : $id; 35 | } 36 | 37 | /** 38 | * Process the results of a column listing query. 39 | * 40 | * @param array $results 41 | * @return array 42 | */ 43 | public function processColumnListing($results) 44 | { 45 | return $results; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Query/Processors/SQLiteProcessor.php: -------------------------------------------------------------------------------- 1 | name; }, $results)); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Query/Processors/SqlServerProcessor.php: -------------------------------------------------------------------------------- 1 | getConnection()->insert($sql, $values); 19 | 20 | $id = $query->getConnection()->getPdo()->lastInsertId(); 21 | 22 | return is_numeric($id) ? (int) $id : $id; 23 | } 24 | 25 | /** 26 | * Process the results of a column listing query. 27 | * 28 | * @param array $results 29 | * @return array 30 | */ 31 | public function processColumnListing($results) 32 | { 33 | return array_values(array_map(function($r) { return $r->name; }, $results)); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/QueryException.php: -------------------------------------------------------------------------------- 1 | sql = $sql; 32 | $this->bindings = $bindings; 33 | $this->previous = $previous; 34 | $this->code = $previous->getCode(); 35 | $this->message = $this->formatMessage($sql, $bindings, $previous); 36 | 37 | if ($previous instanceof PDOException) 38 | { 39 | $this->errorInfo = $previous->errorInfo; 40 | } 41 | } 42 | 43 | /** 44 | * Format the SQL error message. 45 | * 46 | * @param string $sql 47 | * @param array $bindings 48 | * @param \Exception $previous 49 | * @return string 50 | */ 51 | protected function formatMessage($sql, $bindings, $previous) 52 | { 53 | return $previous->getMessage().' (SQL: '.str_replace_array('\?', $bindings, $sql).')'; 54 | } 55 | 56 | /** 57 | * Get the SQL for the query. 58 | * 59 | * @return string 60 | */ 61 | public function getSql() 62 | { 63 | return $this->sql; 64 | } 65 | 66 | /** 67 | * Get the bindings for the query. 68 | * 69 | * @return array 70 | */ 71 | public function getBindings() 72 | { 73 | return $this->bindings; 74 | } 75 | 76 | } 77 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/SQLiteConnection.php: -------------------------------------------------------------------------------- 1 | withTablePrefix(new QueryGrammar); 17 | } 18 | 19 | /** 20 | * Get the default schema grammar instance. 21 | * 22 | * @return \Illuminate\Database\Schema\Grammars\SQLiteGrammar 23 | */ 24 | protected function getDefaultSchemaGrammar() 25 | { 26 | return $this->withTablePrefix(new SchemaGrammar); 27 | } 28 | 29 | /** 30 | * Get the default post processor instance. 31 | * 32 | * @return \Illuminate\Database\Query\Processors\Processor 33 | */ 34 | protected function getDefaultPostProcessor() 35 | { 36 | return new Query\Processors\SQLiteProcessor; 37 | } 38 | 39 | /** 40 | * Get the Doctrine DBAL driver. 41 | * 42 | * @return \Doctrine\DBAL\Driver\PDOSqlite\Driver 43 | */ 44 | protected function getDoctrineDriver() 45 | { 46 | return new DoctrineDriver; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/Schema/MySqlBuilder.php: -------------------------------------------------------------------------------- 1 | grammar->compileTableExists(); 14 | 15 | $database = $this->connection->getDatabaseName(); 16 | 17 | $table = $this->connection->getTablePrefix().$table; 18 | 19 | return count($this->connection->select($sql, array($database, $table))) > 0; 20 | } 21 | 22 | /** 23 | * Get the column listing for a given table. 24 | * 25 | * @param string $table 26 | * @return array 27 | */ 28 | public function getColumnListing($table) 29 | { 30 | $sql = $this->grammar->compileColumnExists(); 31 | 32 | $database = $this->connection->getDatabaseName(); 33 | 34 | $table = $this->connection->getTablePrefix().$table; 35 | 36 | $results = $this->connection->select($sql, array($database, $table)); 37 | 38 | return $this->connection->getPostProcessor()->processColumnListing($results); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/SeedServiceProvider.php: -------------------------------------------------------------------------------- 1 | registerSeedCommand(); 23 | 24 | $this->app->bindShared('seeder', function($app) 25 | { 26 | return new Seeder; 27 | }); 28 | 29 | $this->commands('command.seed'); 30 | } 31 | 32 | /** 33 | * Register the seed console command. 34 | * 35 | * @return void 36 | */ 37 | protected function registerSeedCommand() 38 | { 39 | $this->app->bindShared('command.seed', function($app) 40 | { 41 | return new SeedCommand($app['db']); 42 | }); 43 | } 44 | 45 | /** 46 | * Get the services provided by the provider. 47 | * 48 | * @return array 49 | */ 50 | public function provides() 51 | { 52 | return array('seeder', 'command.seed'); 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /vendor/illuminate/database/Illuminate/Database/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "illuminate/database", 3 | "license": "MIT", 4 | "keywords": ["laravel", "database", "sql", "orm"], 5 | "authors": [ 6 | { 7 | "name": "Taylor Otwell", 8 | "email": "taylorotwell@gmail.com" 9 | } 10 | ], 11 | "require": { 12 | "php": ">=5.3.0", 13 | "illuminate/container": "4.1.*", 14 | "illuminate/events": "4.1.*", 15 | "illuminate/support": "4.1.*", 16 | "nesbot/carbon": "1.*" 17 | }, 18 | "require-dev": { 19 | "illuminate/cache": "4.1.*", 20 | "illuminate/console": "4.1.*", 21 | "illuminate/filesystem": "4.1.*", 22 | "illuminate/pagination": "4.1.*", 23 | "illuminate/support": "4.1.*", 24 | "mockery/mockery": "0.9.*", 25 | "phpunit/phpunit": "4.0.*" 26 | }, 27 | "autoload": { 28 | "psr-0": { 29 | "Illuminate\\Database": "" 30 | } 31 | }, 32 | "target-dir": "Illuminate/Database", 33 | "extra": { 34 | "branch-alias": { 35 | "dev-master": "4.1-dev" 36 | } 37 | }, 38 | "minimum-stability": "dev" 39 | } 40 | -------------------------------------------------------------------------------- /vendor/illuminate/events/Illuminate/Events/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | app['events'] = $this->app->share(function($app) 15 | { 16 | return new Dispatcher($app); 17 | }); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /vendor/illuminate/events/Illuminate/Events/Subscriber.php: -------------------------------------------------------------------------------- 1 | =5.3.0", 12 | "illuminate/container": "4.1.*", 13 | "illuminate/support": "4.1.*" 14 | }, 15 | "require-dev": { 16 | "mockery/mockery": "0.9.*", 17 | "phpunit/phpunit": "4.0.*" 18 | }, 19 | "autoload": { 20 | "psr-0": { 21 | "Illuminate\\Events": "" 22 | } 23 | }, 24 | "target-dir": "Illuminate/Events", 25 | "extra": { 26 | "branch-alias": { 27 | "dev-master": "4.1-dev" 28 | } 29 | }, 30 | "minimum-stability": "dev" 31 | } 32 | -------------------------------------------------------------------------------- /vendor/illuminate/support/Illuminate/Support/Contracts/ArrayableInterface.php: -------------------------------------------------------------------------------- 1 | getEngineResolver()->resolve('blade')->getCompiler(); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /vendor/illuminate/support/Illuminate/Support/Facades/Cache.php: -------------------------------------------------------------------------------- 1 | cookie($key, null)); 17 | } 18 | 19 | /** 20 | * Retrieve a cookie from the request. 21 | * 22 | * @param string $key 23 | * @param mixed $default 24 | * @return string 25 | */ 26 | public static function get($key = null, $default = null) 27 | { 28 | return static::$app['request']->cookie($key, $default); 29 | } 30 | 31 | /** 32 | * Get the registered name of the component. 33 | * 34 | * @return string 35 | */ 36 | protected static function getFacadeAccessor() { return 'cookie'; } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /vendor/illuminate/support/Illuminate/Support/Facades/Crypt.php: -------------------------------------------------------------------------------- 1 | input($key, $default); 20 | } 21 | 22 | /** 23 | * Get the registered name of the component. 24 | * 25 | * @return string 26 | */ 27 | protected static function getFacadeAccessor() { return 'request'; } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /vendor/illuminate/support/Illuminate/Support/Facades/Lang.php: -------------------------------------------------------------------------------- 1 | currentRouteNamed($name); 17 | } 18 | 19 | /** 20 | * Determine if the current route uses a given controller action. 21 | * 22 | * @param string $action 23 | * @return bool 24 | */ 25 | public static function uses($action) 26 | { 27 | return static::$app['router']->currentRouteUses($action); 28 | } 29 | 30 | /** 31 | * Get the registered name of the component. 32 | * 33 | * @return string 34 | */ 35 | protected static function getFacadeAccessor() { return 'router'; } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /vendor/illuminate/support/Illuminate/Support/Facades/SSH.php: -------------------------------------------------------------------------------- 1 | connection($name)->getSchemaBuilder(); 17 | } 18 | 19 | /** 20 | * Get the registered name of the component. 21 | * 22 | * @return string 23 | */ 24 | protected static function getFacadeAccessor() 25 | { 26 | return static::$app['db']->connection()->getSchemaBuilder(); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /vendor/illuminate/support/Illuminate/Support/Facades/Session.php: -------------------------------------------------------------------------------- 1 | determineCodeAndVariables(); 32 | 33 | return $this->code; 34 | } 35 | 36 | /** 37 | * Returns the "used" variables of the closure being serialized 38 | * 39 | * @return array 40 | */ 41 | public function getVariables() 42 | { 43 | $this->determineCodeAndVariables(); 44 | 45 | return $this->variables; 46 | } 47 | 48 | /** 49 | * Uses the serialize method directly to lazily fetch the code and variables if needed 50 | */ 51 | protected function determineCodeAndVariables() 52 | { 53 | if (!$this->code) 54 | { 55 | list($this->code, $this->variables) = unserialize($this->serialize()); 56 | } 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /vendor/illuminate/support/Illuminate/Support/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "illuminate/support", 3 | "license": "MIT", 4 | "authors": [ 5 | { 6 | "name": "Taylor Otwell", 7 | "email": "taylorotwell@gmail.com" 8 | } 9 | ], 10 | "require": { 11 | "php": ">=5.3.0" 12 | }, 13 | "require-dev": { 14 | "jeremeamia/superclosure": "1.0.*", 15 | "patchwork/utf8": "1.1.*", 16 | "mockery/mockery": "0.9.*", 17 | "phpunit/phpunit": "4.0.*" 18 | }, 19 | "autoload": { 20 | "psr-0": { 21 | "Illuminate\\Support": "" 22 | }, 23 | "files": [ 24 | "Illuminate/Support/helpers.php" 25 | ] 26 | }, 27 | "target-dir": "Illuminate/Support", 28 | "extra": { 29 | "branch-alias": { 30 | "dev-master": "4.1-dev" 31 | } 32 | }, 33 | "minimum-stability": "dev" 34 | } 35 | -------------------------------------------------------------------------------- /vendor/iran/irpackagist3/README.md: -------------------------------------------------------------------------------- 1 | # irpackagist2 2 | test2 3 | 4 | 5 | 这是一个测试版本 6 | 只发布到github.com 但是不提交到packagist -------------------------------------------------------------------------------- /vendor/iran/irpackagist3/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iran/irpackagist3", 3 | "type": "library", 4 | "description": "test3", 5 | "keywords": ["iran", "iranw"], 6 | "homepage": "http://www.phpno.com", 7 | "license": "MIT", 8 | "authors": [ 9 | {"name": "Iran Wang", "email": "wang_wenguan@yeah.net"} 10 | ], 11 | "require": { 12 | "php": ">=5.3.2" 13 | }, 14 | "require-dev": { 15 | "phpunit/phpunit": ">=3.7" 16 | }, 17 | "autoload": { 18 | "psr-0": { "Iran\\Funccc\\": "lib/" } 19 | }, 20 | "extra": { 21 | "branch-alias": { 22 | "dev-master": "1.0.x-dev" 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/iran/irpackagist3/lib/Iran/Funccc/StringHelp.php: -------------------------------------------------------------------------------- 1 | =5.3.2" 13 | }, 14 | "require-dev": { 15 | "phpunit/phpunit": ">=3.7" 16 | }, 17 | "autoload": { 18 | "psr-0": { "Iran\\Func\\": "lib/" } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/iran/test/lib/Iran/Func/StringHelp.php: -------------------------------------------------------------------------------- 1 | =5.3.0", 21 | "symfony/translation": "2.6.*" 22 | }, 23 | "require-dev": { 24 | "phpunit/phpunit": "~4.0" 25 | }, 26 | "autoload": { 27 | "psr-0": { 28 | "Carbon": "src" 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | src/Carbon 17 | 18 | 19 | 20 | 21 | 22 | tests 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/ar.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | /** 12 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 13 | * for possible formats. 14 | * 15 | */ 16 | /** 17 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/ar/date.php 18 | */ 19 | 20 | return array( 21 | 'year' => '{0}سنة|{1}سنة|{2}سنتين|[3,Inf]:count سنوات / سنين', 22 | 'month' => '{0}شهر|{1}شهر|{2}شهرين|[3,Inf]:count شهور / أشهر', 23 | 'week' => '{0}أسبوع|{1}أسبوع|{2}أسبوعين|[3,Inf]:count أسابيع', 24 | 'day' => '{0}يوم|{1}يوم|{2}يومين|[3,Inf]:count أيام', 25 | 'hour' => '{0}ساعة|{1}ساعة|{2}ساعتين|[3,Inf]:count ساعات', 26 | 'minute' => '{0}دقيقة|{1}دقيقة|{2}دقيقتين|[3,Inf]:count دقائق', 27 | 'second' => '{0}ثانية|{1}ثانية|{2}ثانيتين|[3,Inf]:count ثوان', 28 | 'ago' => 'منذ :time', 29 | 'from_now' => 'من الآن :time', 30 | 'after' => 'بعد :time', 31 | 'before' => 'قبل :time', 32 | ); 33 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/bg.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | /** 12 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 13 | * for possible formats. 14 | * 15 | */ 16 | /** 17 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/bg/date.php 18 | */ 19 | 20 | return array( 21 | 'year' => '1 година|:count години', 22 | 'month' => '1 месец|:count месеца', 23 | 'week' => '1 седмица|:count седмици', 24 | 'day' => '1 ден|:count дни', 25 | 'hour' => '1 час|:count часа', 26 | 'minute' => '1 минута|:count минути', 27 | 'second' => '1 секунда|:count секунди', 28 | 'ago' => 'преди :time', 29 | 'from_now' => ':time от сега', 30 | 'after' => 'след :time', 31 | 'before' => 'преди :time', 32 | ); 33 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/ca.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/ca/date.php 17 | */ 18 | return array( 19 | 'year' => '1 any|:count anys', 20 | 'month' => '1 mes|:count mesos', 21 | 'week' => '1 setmana|:count setmanes', 22 | 'day' => '1 dia|:count díes', 23 | 'hour' => '1 hora|:count hores', 24 | 'minute' => '1 minut|:count minuts', 25 | 'second' => '1 segon|:count segons', 26 | 'ago' => 'Fa :time', 27 | 'from_now' => 'Dins de :time', 28 | 'after' => ':time després', 29 | 'before' => ':time abans', 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/cs.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/cs/date.php 17 | */ 18 | return array( 19 | 'year' => 'rok|:count roky|:count let', 20 | 'month' => 'měsíc|:count měsíce|:count měsíců', 21 | 'week' => 'týden|:count týdny|:count týdnů', 22 | 'day' => 'den|:count dny|:count dní', 23 | 'hour' => 'hodinu|:count hodiny|:count hodin', 24 | 'minute' => 'minutu|:count minuty|:count minut', 25 | 'second' => 'sekundu|:count sekundy|:count sekund', 26 | 'ago' => 'před :time', 27 | 'from_now' => 'za :time', 28 | 'after' => ':time později', 29 | 'before' => ':time předtím', 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/da.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | /** 13 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 14 | * for possible formats. 15 | * 16 | */ 17 | return array( 18 | 'year' => '1 år|:count år', 19 | 'month' => '1 måned|:count måneder', 20 | 'week' => '1 uge|:count uger', 21 | 'day' => '1 dag|:count dage', 22 | 'hour' => '1 time|:count timer', 23 | 'minute' => '1 minut|:count minutter', 24 | 'second' => '1 sekund|:count sekunder', 25 | 'ago' => ':time siden', 26 | 'from_now' => 'om :time', 27 | 'after' => ':time efter', 28 | 'before' => ':time før', 29 | ); 30 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/de.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * This file is released under the terms of CC0. 9 | * CC0 is even more permissive than the MIT license, allowing you to use the code in 10 | * any manner you want, without any copyright headers, notices, or other attribution. 11 | */ 12 | 13 | /** 14 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 15 | * for possible formats. 16 | * 17 | */ 18 | return array( 19 | 'year' => '1 Jahr|:count Jahre', 20 | 'month' => '1 Monat|:count Monate', 21 | 'week' => '1 Woche|:count Wochen', 22 | 'day' => '1 Tag|:count Tage', 23 | 'hour' => '1 Stunde|:count Stunden', 24 | 'minute' => '1 Minute|:count Minuten', 25 | 'second' => '1 Sekunde|:count Sekunden', 26 | 'ago' => 'vor :time', 27 | 'from_now' => 'in :time', 28 | 'after' => ':time später', 29 | 'before' => ':time zuvor', 30 | 31 | 'year_from_now' => '1 Jahr|:count Jahren', 32 | 'month_from_now' => '1 Monat|:count Monaten', 33 | 'week_from_now' => '1 Woche|:count Wochen', 34 | 'day_from_now' => '1 Tag|:count Tagen', 35 | 'year_ago' => '1 Jahr|:count Jahren', 36 | 'month_ago' => '1 Monat|:count Monaten', 37 | 'week_ago' => '1 Woche|:count Wochen', 38 | 'day_ago' => '1 Tag|:count Tagen', 39 | ); 40 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/el.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/el/date.php 17 | */ 18 | return array( 19 | 'year' => '1 χρόνος|:count χρόνια', 20 | 'month' => '1 μήνας|:count μήνες', 21 | 'week' => '1 εβδομάδα|:count εβδομάδες', 22 | 'day' => '1 μέρα|:count μέρες', 23 | 'hour' => '1 ώρα|:count ώρες', 24 | 'minute' => '1 λεπτό|:count λεπτά', 25 | 'second' => '1 δευτερόλεπτο|:count δευτερόλεπτα', 26 | 'ago' => 'πρίν απο :time', 27 | 'from_now' => 'σε :time απο τώρα', 28 | 'after' => ':time μετά', 29 | 'before' => ':time πρίν' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/en.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | /** 13 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 14 | * for possible formats. 15 | * 16 | */ 17 | return array( 18 | 'year' => '1 year|:count years', 19 | 'month' => '1 month|:count months', 20 | 'week' => '1 week|:count weeks', 21 | 'day' => '1 day|:count days', 22 | 'hour' => '1 hour|:count hours', 23 | 'minute' => '1 minute|:count minutes', 24 | 'second' => '1 second|:count seconds', 25 | 'ago' => ':time ago', 26 | 'from_now' => ':time from now', 27 | 'after' => ':time after', 28 | 'before' => ':time before', 29 | ); 30 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/eo.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/eo/date.php 17 | */ 18 | return array( 19 | 'year' => '1 jaro|:count jaroj', 20 | 'month' => '1 monato|:count monatoj', 21 | 'week' => '1 semajno|:count semajnoj', 22 | 'day' => '1 tago|:count tagoj', 23 | 'hour' => '1 horo|:count horoj', 24 | 'minute' => '1 minuto|:count minutoj', 25 | 'second' => '1 sekundo|:count sekundoj', 26 | 'ago' => 'antaŭ :time', 27 | 'from_now' => 'je :time', 28 | 'after' => ':time poste', 29 | 'before' => ':time antaŭe' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/es.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | /** 13 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 14 | * for possible formats. 15 | * 16 | */ 17 | return array( 18 | 'year' => '1 año|:count años', 19 | 'month' => '1 mes|:count meses', 20 | 'week' => '1 semana|:count semanas', 21 | 'day' => '1 día|:count días', 22 | 'hour' => '1 hora|:count horas', 23 | 'minute' => '1 minuto|:count minutos', 24 | 'second' => '1 segundo|:count segundos', 25 | 'ago' => 'hace :time', 26 | 'from_now' => 'dentro de :time', 27 | 'after' => ':time antes', 28 | 'before' => ':time después', 29 | ); 30 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/eu: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/eu/date.php 17 | */ 18 | return array( 19 | 'year' => 'Urte 1|:count urte', 20 | 'month' => 'Hile 1|:count hile', 21 | 'week' => 'Aste 1|:count aste', 22 | 'day' => 'Egun 1|:count egun', 23 | 'hour' => 'Ordu 1|:count ordu', 24 | 'minute' => 'Minutu 1|:count minutu', 25 | 'second' => 'Segundu 1|:count segundu', 26 | 'ago' => 'Orain dela :time', 27 | 'from_now' => ':time barru', 28 | 'after' => ':time geroago', 29 | 'before' => ':time lehenago' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/fi.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/fi/date.php 17 | */ 18 | return array( 19 | 'year' => '1 vuosi|:count vuotta', 20 | 'month' => '1 kuukausi|:count kuukautta', 21 | 'week' => '1 viikko|:count viikkoa', 22 | 'day' => '1 päivä|:count päivää', 23 | 'hour' => '1 tunti|:count tuntia', 24 | 'minute' => '1 minuutti|:count minuuttia', 25 | 'second' => '1 sekunti|:count sekuntia', 26 | 'ago' => ':time sitten', 27 | 'from_now' => ':time tästä hetkestä', 28 | 'after' => ':time sen jälkeen', 29 | 'before' => ':time ennen' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/fr.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | /** 13 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 14 | * for possible formats. 15 | * 16 | */ 17 | return array( 18 | 'year' => '1 an|:count ans', 19 | 'month' => ':count mois', 20 | 'week' => '1 semaine|:count semaines', 21 | 'day' => '1 jour|:count jours', 22 | 'hour' => '1 heure|:count heures', 23 | 'minute' => '1 minute|:count minutes', 24 | 'second' => '1 seconde|:count secondes', 25 | 'ago' => 'il y a :time', 26 | 'from_now' => 'dans :time', 27 | 'after' => ':time après', 28 | 'before' => ':time avant', 29 | ); 30 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/hr.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/hr/date.php 17 | */ 18 | return array( 19 | 'year' => ':count godinu|:count godine|:count godina', 20 | 'month' => ':count mjesec|:count mjeseca|:count mjeseci', 21 | 'week' => ':count tjedan|:count tjedna|:count tjedana', 22 | 'day' => ':count dan|:count dana|:count dana', 23 | 'hour' => ':count sat|:count sata|:count sati', 24 | 'minute' => ':count minutu|:count minute |:count minuta', 25 | 'second' => ':count sekundu|:count sekunde|:count sekundi', 26 | 'ago' => 'prije :time', 27 | 'from_now' => 'za :time', 28 | 'after' => 'za :time', 29 | 'before' => 'prije :time' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/hu.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/hu/date.php 17 | */ 18 | return array( 19 | 'year' => '1 évvel|:count évvel', 20 | 'month' => '1 hónappal|:count hónappal', 21 | 'week' => '1 héttel|:count héttel', 22 | 'day' => '1 nappal|:count nappal', 23 | 'hour' => '1 órával|:count órával', 24 | 'minute' => '1 perccel|:count perccel', 25 | 'second' => '1 másodperccel|:count másodperccel', 26 | 'ago' => ':time korábban', 27 | 'from_now' => ':time később', 28 | 'after' => ':time később', 29 | 'before' => ':time korábban' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/id.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/id/date.php 17 | */ 18 | return array( 19 | 'year' => ':count tahun', 20 | 'month' => ':count bulan', 21 | 'week' => ':count minggu', 22 | 'day' => ':count hari', 23 | 'hour' => ':count jam', 24 | 'minute' => ':count menit', 25 | 'second' => ':count detik', 26 | 'ago' => ':time yang lalu', 27 | 'from_now' => ':time dari sekarang', 28 | 'after' => ':time setelah', 29 | 'before' => ':time sebelum' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/it.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | /** 13 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 14 | * for possible formats. 15 | * 16 | */ 17 | return array( 18 | 'year' => '1 anno|:count anni', 19 | 'month' => '1 mese|:count mesi', 20 | 'week' => '1 settimana|:count settimane', 21 | 'day' => '1 giorno|:count giorni', 22 | 'hour' => '1 ora|:count ore', 23 | 'minute' => '1 minuto|:count minuti', 24 | 'second' => '1 secondo|:count secondi', 25 | 'ago' => ':time fa', 26 | 'from_now' => ':time da adesso', 27 | 'after' => ':time dopo', 28 | 'before' => ':time prima', 29 | ); 30 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/ja.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/ja/date.php 17 | */ 18 | return array( 19 | 'year' => ':count 年', 20 | 'month' => ':count ヶ月', 21 | 'week' => ':count 週間', 22 | 'day' => ':count 日', 23 | 'hour' => ':count 時間', 24 | 'minute' => ':count 分', 25 | 'second' => ':count 秒', 26 | 'ago' => ':time 前', 27 | 'from_now' => '今から :time', 28 | 'after' => ':time 後', 29 | 'before' => ':time 前' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/ko.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/cs/date.php 17 | */ 18 | return array( 19 | 'year' => ':count 년', 20 | 'month' => ':count 개월', 21 | 'week' => ':count 주일', 22 | 'day' => ':count 일', 23 | 'hour' => ':count 시간', 24 | 'minute' => ':count 분', 25 | 'second' => ':count 초', 26 | 'ago' => ':time 전', 27 | 'from_now' => ':time 후', 28 | 'after' => ':time 뒤', 29 | 'before' => ':time 앞', 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/lt.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | return array( 16 | 'year' => '1 metai|:count metai', 17 | 'month' => '1 mėnuo|:count mėnesiai', 18 | 'week' => '1 savaitė|:count savaitės', 19 | 'day' => '1 diena|:count dienos', 20 | 'hour' => '1 valanda|:count valandos', 21 | 'minute' => '1 minutė|:count minutės', 22 | 'second' => '1 sekundė|:count sekundės', 23 | 'ago' => 'prieš :time', 24 | 'from_now' => ':time nuo dabar', 25 | 'after' => 'po :time', 26 | 'before' => 'prieš :time', 27 | ); 28 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/nl.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | return array( 16 | 'year' => '1 jaar|:count jaren', 17 | 'month' => '1 maand|:count maanden', 18 | 'week' => '1 week|:count weken', 19 | 'day' => '1 dag|:count dagen', 20 | 'hour' => '1 uur|:count uren', 21 | 'minute' => '1 minuut|:count minuten', 22 | 'second' => '1 seconde|:count seconden', 23 | 'ago' => ':time geleden', 24 | 'from_now' => 'over :time', 25 | 'after' => ':time later', 26 | 'before' => ':time eerder', 27 | ); 28 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/no.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/no/date.php 17 | */ 18 | return array( 19 | 'year' => '1 år|:count år', 20 | 'month' => '1 måned|:count måneder', 21 | 'week' => '1 uke|:count uker', 22 | 'day' => '1 dag|:count dager', 23 | 'hour' => '1 time|:count timer', 24 | 'minute' => '1 minutt|:count minutter', 25 | 'second' => '1 sekund|:count sekunder', 26 | 'ago' => ':time siden', 27 | 'from_now' => 'om :time', 28 | 'after' => ':time etter', 29 | 'before' => ':time før' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/pl.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/pl/date.php 17 | */ 18 | return array( 19 | 'year' => '1 rok|:count lata|:count lat', 20 | 'month' => '1 miesiąc|:count miesiące|:count miesięcy', 21 | 'week' => '1 tydzień|:count tygodnie|:count tygodni', 22 | 'day' => '1 dzień|:count dni|:count dni', 23 | 'hour' => '1 godzina|:count godziny|:count godzin', 24 | 'minute' => '1 minuta|:count minuty|:count minut', 25 | 'second' => '1 sekunda|:count sekundy|:count sekund', 26 | 'ago' => ':time temu', 27 | 'from_now' => ':time od teraz', 28 | 'after' => ':time przed', 29 | 'before' => ':time po' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/pt.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/pt/date.php 17 | */ 18 | return array( 19 | 'year' => '1 ano|:count anos', 20 | 'month' => '1 mês|:count meses', 21 | 'week' => '1 semana|:count semanas', 22 | 'day' => '1 dia|:count dias', 23 | 'hour' => '1 hora|:count horas', 24 | 'minute' => '1 minuto|:count minutos', 25 | 'second' => '1 segundo|:count segundos', 26 | 'ago' => ':time atrás', 27 | 'from_now' => 'em :time', 28 | 'after' => ':time depois', 29 | 'before' => ':time antes' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/pt_BR.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | return array( 16 | 'year' => '1 ano|:count anos', 17 | 'month' => '1 mês|:count meses', 18 | 'week' => '1 semana|:count semanas', 19 | 'day' => '1 dia|:count dias', 20 | 'hour' => '1 hora|:count horas', 21 | 'minute' => '1 minuto|:count minutos', 22 | 'second' => '1 segundo|:count segundos', 23 | 'ago' => 'há :time', 24 | 'from_now' => 'dentro de :time', 25 | 'after' => ':time depois', 26 | 'before' => ':time antes', 27 | ); 28 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/ro.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/ro/date.php 17 | */ 18 | return array( 19 | 'year' => 'un an|:count ani|:count ani', 20 | 'month' => 'o luna|:count luni|:count luni', 21 | 'week' => 'o saptamana|:count saptamani|:count saptamani', 22 | 'day' => 'o zi|:count zile|:count zile', 23 | 'hour' => 'o ora|:count ore|:count ore', 24 | 'minute' => 'un minut|:count minute|:count minute', 25 | 'second' => 'o secunda|:count secunde|:count secunde', 26 | 'ago' => 'acum :time', 27 | 'from_now' => ':time de acum', 28 | 'after' => 'peste :time', 29 | 'before' => 'acum :time' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/ru.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/ru/date.php 17 | */ 18 | return array( 19 | 'year' => ':count год|:count года|:count лет', 20 | 'month' => ':count месяц|:count месяца|:count месяцев', 21 | 'week' => ':count неделю|:count недели|:count недель', 22 | 'day' => ':count день|:count дня|:count дней', 23 | 'hour' => ':count час|:count часа|:count часов', 24 | 'minute' => ':count минуту|:count минуты|:count минут', 25 | 'second' => ':count секунду|:count секунды|:count секунд', 26 | 'ago' => ':time назад', 27 | 'from_now' => 'через :time', 28 | 'after' => ':time после', 29 | 'before' => ':time до' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/sk.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/sk/date.php 17 | */ 18 | return array( 19 | 'year' => 'rok|:count roky|:count rokov', 20 | 'month' => 'mesiac|:count mesiace|:count mesiacov', 21 | 'week' => 'týždeň|:count týždne|:count týždňov', 22 | 'day' => 'deň|:count dni|:count dní', 23 | 'hour' => 'hodinu|:count hodiny|:count hodín', 24 | 'minute' => 'minútu|:count minúty|:count minút', 25 | 'second' => 'sekundu|:count sekundy|:count sekúnd', 26 | 'ago' => 'pred :time', 27 | 'from_now' => 'za :time', 28 | 'after' => ':time neskôr', 29 | 'before' => ':time predtým' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/sl.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/sl/date.php 17 | */ 18 | return array( 19 | 'year' => '1 leto|:count leti|:count leta|:count let', 20 | 'month' => '1 mesec|:count meseca|:count mesece|:count mesecev', 21 | 'week' => '1 teden|:count tedna|:count tedne|:count tednov', 22 | 'day' => '1 dan|:count dni|:count dni|:count dni', 23 | 'hour' => '1 uro|:count uri|:count ure|:count ur', 24 | 'minute' => '1 minuto|:count minuti|:count minute|:count minut', 25 | 'second' => '1 sekundo|:count sekundi|:count sekunde|:count sekund', 26 | 'year_ago' => '1 letom|:count leti|:count leti|:count leti', 27 | 'month_ago' => '1 mesecem|:count meseci|:count meseci|:count meseci', 28 | 'week_ago' => '1 tednom|:count tedni|:count tedni', 29 | 'day_ago' => '1 dnem|:count dnevoma|:count dnevi|:count dnevi', 30 | 'hour_ago' => '1 uro|:count urama|:count urami|:count urami', 31 | 'minute_ago'=> '1 minuto|:count minutama|:count minutami', 32 | 'second_ago'=> '1 sekundo|:count sekundama|:count sekundami|:count sekundami', 33 | 'ago' => 'pred :time', 34 | 'from_now' => 'čez :time', 35 | 'after' => 'čez :time', 36 | 'before' => 'pred :time' 37 | ); 38 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/sr.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/sr/date.php 17 | */ 18 | return array( 19 | 'year' => ':count godina|:count godine|:count godina', 20 | 'month' => ':count mesec|:count meseca|:count meseci', 21 | 'week' => ':count nedelja|:count nedelje|:count nedelja', 22 | 'day' => ':count dan|:count dana|:count dana', 23 | 'hour' => ':count sat|:count sata|:count sati', 24 | 'minute' => ':count minut|:count minuta |:count minuta', 25 | 'second' => ':count sekund|:count sekunde|:count sekunde', 26 | 'ago' => 'pre :time', 27 | 'from_now' => ':time od sada', 28 | 'after' => 'nakon :time', 29 | 'before' => 'pre :time' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/sv.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/sv/date.php 17 | */ 18 | return array( 19 | 'year' => '1 år|:count år', 20 | 'month' => '1 månad|:count månader', 21 | 'week' => '1 vecka|:count veckor', 22 | 'day' => '1 dag|:count dagar', 23 | 'hour' => '1 timme|:count timmar', 24 | 'minute' => '1 minut|:count minuter', 25 | 'second' => '1 sekund|:count sekunder', 26 | 'ago' => ':time sedan', 27 | 'from_now' => 'om :time', 28 | 'after' => ':time efter', 29 | 'before' => ':time före' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/th.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/th/date.php 17 | */ 18 | return array( 19 | 'year' => '1 ปี|:count ปี', 20 | 'month' => '1 เดือน|:count เดือน', 21 | 'week' => '1 สัปดาห์|:count สัปดาห์', 22 | 'day' => '1 วัน|:count วัน', 23 | 'hour' => '1 ชั่วโมง|:count ชั่วโมง', 24 | 'minute' => '1 นาที|:count นาที', 25 | 'second' => '1 วินาที|:count วินาที', 26 | 'ago' => ':time sitten', 27 | 'ago' => ':time ที่แล้ว', 28 | 'from_now' => ':time จากนี้', 29 | 'after' => 'หลัง:time', 30 | 'before' => 'ก่อน:time' 31 | ); 32 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/tr.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | /** 13 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 14 | * for possible formats. 15 | * 16 | */ 17 | return array( 18 | 'year' => ':count yıl', 19 | 'month' => ':count ay', 20 | 'week' => ':count hafta', 21 | 'day' => ':count gün', 22 | 'hour' => ':count saat', 23 | 'minute' => ':count dakika', 24 | 'second' => ':count saniye', 25 | 'ago' => ':time önce', 26 | 'from_now' => ':time andan itibaren', 27 | 'after' => ':time sonra', 28 | 'before' => ':time önce', 29 | ); 30 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/uk.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/uk/date.php 17 | */ 18 | return array( 19 | 'year' => ':count рік|:count роки|:count років', 20 | 'month' => ':count місяць|:count місяці|:count місяців', 21 | 'week' => ':count тиждень|:count тижні|:count тижнів', 22 | 'day' => ':count день|:count дні|:count днів', 23 | 'hour' => ':count година|:count години|:count годин', 24 | 'minute' => ':count хвилину|:count хвилини|:count хвилин', 25 | 'second' => ':count секунду|:count секунди|:count секунд', 26 | 'ago' => ':time назад', 27 | 'from_now' => 'через :time', 28 | 'after' => ':time після', 29 | 'before' => ':time до' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/vi.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/vi/date.php 17 | */ 18 | return array( 19 | 'year' => ':count năm', 20 | 'month' => ':count tháng', 21 | 'week' => ':count tuần', 22 | 'day' => ':count ngày', 23 | 'hour' => ':count giờ', 24 | 'minute' => ':count phút', 25 | 'second' => ':count giây', 26 | 'ago' => ':time trước', 27 | 'from_now' => ':time từ bây giờ', 28 | 'after' => ':time sau', 29 | 'before' => ':time trước' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/zh-TW.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/zh-TW/date.php 17 | */ 18 | return array( 19 | 'year' => ':count 年', 20 | 'month' => ':count 月', 21 | 'week' => ':count 周', 22 | 'day' => ':count 天', 23 | 'hour' => ':count 小時', 24 | 'minute' => ':count 分鐘', 25 | 'second' => ':count 秒', 26 | 'ago' => ':time前', 27 | 'from_now' => '距現在 :time', 28 | 'after' => ':time後', 29 | 'before' => ':time前' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/src/Carbon/Lang/zh.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Translation messages. See http://symfony.com/doc/current/book/translation.html 12 | * for possible formats. 13 | * 14 | */ 15 | /** 16 | * Extracted from https://github.com/jenssegers/laravel-date/blob/master/src/lang/zh/date.php 17 | */ 18 | return array( 19 | 'year' => ':count年', 20 | 'month' => ':count月', 21 | 'week' => ':count周', 22 | 'day' => ':count天', 23 | 'hour' => ':count小时', 24 | 'minute' => ':count分钟', 25 | 'second' => ':count秒', 26 | 'ago' => ':time前', 27 | 'from_now' => ':time距现在', 28 | 'after' => ':time后', 29 | 'before' => ':time前' 30 | ); 31 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/tests/CarbonIntervalAddTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Carbon\CarbonInterval; 13 | use Carbon\Carbon; 14 | 15 | class CarbonIntervalAddTest extends TestFixture 16 | { 17 | public function testAdd() 18 | { 19 | $ci = CarbonInterval::create(4, 3, 6, 7, 8, 10, 11)->add(new DateInterval('P2Y1M5DT22H33M44S')); 20 | $this->assertCarbonInterval($ci, 6, 4, 54, 30, 43, 55); 21 | } 22 | 23 | public function testAddWithDiffDateInterval() 24 | { 25 | $diff = Carbon::now()->diff(Carbon::now()->addWeeks(3)); 26 | $ci = CarbonInterval::create(4, 3, 6, 7, 8, 10, 11)->add($diff); 27 | $this->assertCarbonInterval($ci, 4, 3, 70, 8, 10, 11); 28 | } 29 | 30 | public function testAddWithNegativeDiffDateInterval() 31 | { 32 | $diff = Carbon::now()->diff(Carbon::now()->subWeeks(3)); 33 | $ci = CarbonInterval::create(4, 3, 6, 7, 8, 10, 11)->add($diff); 34 | $this->assertCarbonInterval($ci, 4, 3, 28, 8, 10, 11); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/tests/CopyTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Carbon\Carbon; 13 | 14 | class CopyTest extends TestFixture 15 | { 16 | public function testCopy() 17 | { 18 | $dating = Carbon::now(); 19 | $dating2 = $dating->copy(); 20 | $this->assertNotSame($dating, $dating2); 21 | } 22 | 23 | public function testCopyEnsureTzIsCopied() 24 | { 25 | $dating = Carbon::createFromDate(2000, 1, 1, 'Europe/London'); 26 | $dating2 = $dating->copy(); 27 | $this->assertSame($dating->tzName, $dating2->tzName); 28 | $this->assertSame($dating->offset, $dating2->offset); 29 | } 30 | 31 | public function testCopyEnsureMicrosAreCopied() 32 | { 33 | $micro = 254687; 34 | $dating = Carbon::createFromFormat('Y-m-d H:i:s.u', '2014-02-01 03:45:27.'.$micro); 35 | $dating2 = $dating->copy(); 36 | $this->assertSame($micro, $dating2->micro); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/tests/CreateFromFormatTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Carbon\Carbon; 13 | 14 | class CreateFromFormatTest extends TestFixture 15 | { 16 | public function testCreateFromFormatReturnsCarbon() 17 | { 18 | $d = Carbon::createFromFormat('Y-m-d H:i:s', '1975-05-21 22:32:11'); 19 | $this->assertCarbon($d, 1975, 5, 21, 22, 32, 11); 20 | $this->assertTrue($d instanceof Carbon); 21 | } 22 | 23 | public function testCreateFromFormatWithTimezoneString() 24 | { 25 | $d = Carbon::createFromFormat('Y-m-d H:i:s', '1975-05-21 22:32:11', 'Europe/London'); 26 | $this->assertCarbon($d, 1975, 5, 21, 22, 32, 11); 27 | $this->assertSame('Europe/London', $d->tzName); 28 | } 29 | 30 | public function testCreateFromFormatWithTimezone() 31 | { 32 | $d = Carbon::createFromFormat('Y-m-d H:i:s', '1975-05-21 22:32:11', new \DateTimeZone('Europe/London')); 33 | $this->assertCarbon($d, 1975, 5, 21, 22, 32, 11); 34 | $this->assertSame('Europe/London', $d->tzName); 35 | } 36 | 37 | public function testCreateFromFormatWithMillis() 38 | { 39 | $d = Carbon::createFromFormat('Y-m-d H:i:s.u', '1975-05-21 22:32:11.254687'); 40 | $this->assertSame(254687, $d->micro); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/tests/InstanceTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Carbon\Carbon; 13 | 14 | class InstanceTest extends TestFixture 15 | { 16 | public function testInstanceFromDateTime() 17 | { 18 | $dating = Carbon::instance(\DateTime::createFromFormat('Y-m-d H:i:s', '1975-05-21 22:32:11')); 19 | $this->assertCarbon($dating, 1975, 5, 21, 22, 32, 11); 20 | } 21 | 22 | public function testInstanceFromDateTimeKeepsTimezoneName() 23 | { 24 | $dating = Carbon::instance(\DateTime::createFromFormat('Y-m-d H:i:s', '1975-05-21 22:32:11')->setTimezone(new \DateTimeZone('America/Vancouver'))); 25 | $this->assertSame('America/Vancouver', $dating->tzName); 26 | } 27 | 28 | public function testInstanceFromDateTimeKeepsMicros() 29 | { 30 | $micro = 254687; 31 | $datetime = \DateTime::createFromFormat('Y-m-d H:i:s.u', '2014-02-01 03:45:27.'.$micro); 32 | $carbon = Carbon::instance($datetime); 33 | $this->assertSame($micro, $carbon->micro); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/tests/IssetTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Carbon\Carbon; 13 | 14 | class IssetTest extends TestFixture 15 | { 16 | public function testIssetReturnFalseForUnknownProperty() 17 | { 18 | $this->assertFalse(isset(Carbon::create(1234, 5, 6, 7, 8, 9)->sdfsdfss)); 19 | } 20 | 21 | public function testIssetReturnTrueForProperties() 22 | { 23 | $properties = array( 24 | 'year', 25 | 'month', 26 | 'day', 27 | 'hour', 28 | 'minute', 29 | 'second', 30 | 'dayOfWeek', 31 | 'dayOfYear', 32 | 'daysInMonth', 33 | 'timestamp', 34 | 'age', 35 | 'quarter', 36 | 'dst', 37 | 'offset', 38 | 'offsetHours', 39 | 'timezone', 40 | 'timezoneName', 41 | 'tz', 42 | 'tzName', 43 | ); 44 | 45 | foreach ($properties as $property) { 46 | $this->assertTrue(isset(Carbon::create(1234, 5, 6, 7, 8, 9)->$property)); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/nesbot/carbon/tests/RelativeTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Carbon\Carbon; 13 | 14 | class RelativeTest extends TestFixture 15 | { 16 | public function testSecondsSinceMidnight() 17 | { 18 | $d = Carbon::today()->addSeconds(30); 19 | $this->assertSame(30, $d->secondsSinceMidnight()); 20 | 21 | $d = Carbon::today()->addDays(1); 22 | $this->assertSame(0, $d->secondsSinceMidnight()); 23 | 24 | $d = Carbon::today()->addDays(1)->addSeconds(120); 25 | $this->assertSame(120, $d->secondsSinceMidnight()); 26 | 27 | $d = Carbon::today()->addMonths(3)->addSeconds(42); 28 | $this->assertSame(42, $d->secondsSinceMidnight()); 29 | } 30 | 31 | public function testSecondsUntilEndOfDay() 32 | { 33 | $d = Carbon::today()->endOfDay(); 34 | $this->assertSame(0, $d->secondsUntilEndOfDay()); 35 | 36 | $d = Carbon::today()->endOfDay()->subSeconds(60); 37 | $this->assertSame(60, $d->secondsUntilEndOfDay()); 38 | 39 | $d = Carbon::create(2014, 10, 24, 12, 34, 56); 40 | $this->assertSame(41103, $d->secondsUntilEndOfDay()); 41 | 42 | $d = Carbon::create(2014, 10, 24, 0, 0, 0); 43 | $this->assertSame(86399, $d->secondsUntilEndOfDay()); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | composer.lock 3 | phpunit.xml 4 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | CHANGELOG 2 | ========= 3 | 4 | 2.6.0 5 | ----- 6 | 7 | * added possibility to cache catalogues 8 | * added TranslatorBagInterface 9 | * added LoggingTranslator 10 | * added Translator::getMessages() for retrieving the message catalogue as an array 11 | 12 | 2.5.0 13 | ----- 14 | 15 | * added relative file path template to the file dumpers 16 | * added optional backup to the file dumpers 17 | * changed IcuResFileDumper to extend FileDumper 18 | 19 | 2.3.0 20 | ----- 21 | 22 | * added classes to make operations on catalogues (like making a diff or a merge on 2 catalogues) 23 | * added Translator::getFallbackLocales() 24 | * deprecated Translator::setFallbackLocale() in favor of the new Translator::setFallbackLocales() method 25 | 26 | 2.2.0 27 | ----- 28 | 29 | * QtTranslationsLoader class renamed to QtFileLoader. QtTranslationsLoader is deprecated and will be removed in 2.3. 30 | * [BC BREAK] uniformized the exception thrown by the load() method when an error occurs. The load() method now 31 | throws Symfony\Component\Translation\Exception\NotFoundResourceException when a resource cannot be found 32 | and Symfony\Component\Translation\Exception\InvalidResourceException when a resource is invalid. 33 | * changed the exception class thrown by some load() methods from \RuntimeException to \InvalidArgumentException 34 | (IcuDatFileLoader, IcuResFileLoader and QtFileLoader) 35 | 36 | 2.1.0 37 | ----- 38 | 39 | * added support for more than one fallback locale 40 | * added support for extracting translation messages from templates (Twig and PHP) 41 | * added dumpers for translation catalogs 42 | * added support for QT, gettext, and ResourceBundles 43 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Catalogue/OperationInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Catalogue; 13 | 14 | use Symfony\Component\Translation\MessageCatalogueInterface; 15 | 16 | /** 17 | * Represents an operation on catalogue(s). 18 | * 19 | * @author Jean-François Simon 20 | */ 21 | interface OperationInterface 22 | { 23 | /** 24 | * Returns domains affected by operation. 25 | * 26 | * @return array 27 | */ 28 | public function getDomains(); 29 | 30 | /** 31 | * Returns all valid messages after operation. 32 | * 33 | * @param string $domain 34 | * 35 | * @return array 36 | */ 37 | public function getMessages($domain); 38 | 39 | /** 40 | * Returns new messages after operation. 41 | * 42 | * @param string $domain 43 | * 44 | * @return array 45 | */ 46 | public function getNewMessages($domain); 47 | 48 | /** 49 | * Returns obsolete messages after operation. 50 | * 51 | * @param string $domain 52 | * 53 | * @return array 54 | */ 55 | public function getObsoleteMessages($domain); 56 | 57 | /** 58 | * Returns resulting catalogue. 59 | * 60 | * @return MessageCatalogueInterface 61 | */ 62 | public function getResult(); 63 | } 64 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Dumper/DumperInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | 16 | /** 17 | * DumperInterface is the interface implemented by all translation dumpers. 18 | * There is no common option. 19 | * 20 | * @author Michel Salib 21 | */ 22 | interface DumperInterface 23 | { 24 | /** 25 | * Dumps the message catalogue. 26 | * 27 | * @param MessageCatalogue $messages The message catalogue 28 | * @param array $options Options that are used by the dumper 29 | */ 30 | public function dump(MessageCatalogue $messages, $options = array()); 31 | } 32 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Dumper/IniFileDumper.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | 16 | /** 17 | * IniFileDumper generates an ini formatted string representation of a message catalogue. 18 | * 19 | * @author Stealth35 20 | */ 21 | class IniFileDumper extends FileDumper 22 | { 23 | /** 24 | * {@inheritdoc} 25 | */ 26 | public function format(MessageCatalogue $messages, $domain = 'messages') 27 | { 28 | $output = ''; 29 | 30 | foreach ($messages->all($domain) as $source => $target) { 31 | $escapeTarget = str_replace('"', '\"', $target); 32 | $output .= $source.'="'.$escapeTarget."\"\n"; 33 | } 34 | 35 | return $output; 36 | } 37 | 38 | /** 39 | * {@inheritdoc} 40 | */ 41 | protected function getExtension() 42 | { 43 | return 'ini'; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Dumper/JsonFileDumper.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | 16 | if (!defined('JSON_PRETTY_PRINT')) { 17 | define('JSON_PRETTY_PRINT', 128); 18 | } 19 | 20 | /** 21 | * JsonFileDumper generates an json formatted string representation of a message catalogue. 22 | * 23 | * @author singles 24 | */ 25 | class JsonFileDumper extends FileDumper 26 | { 27 | /** 28 | * {@inheritdoc} 29 | */ 30 | public function format(MessageCatalogue $messages, $domain = 'messages') 31 | { 32 | return json_encode($messages->all($domain), JSON_PRETTY_PRINT); 33 | } 34 | 35 | /** 36 | * {@inheritdoc} 37 | */ 38 | protected function getExtension() 39 | { 40 | return 'json'; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Dumper/PhpFileDumper.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | 16 | /** 17 | * PhpFileDumper generates PHP files from a message catalogue. 18 | * 19 | * @author Michel Salib 20 | */ 21 | class PhpFileDumper extends FileDumper 22 | { 23 | /** 24 | * {@inheritdoc} 25 | */ 26 | protected function format(MessageCatalogue $messages, $domain) 27 | { 28 | $output = "all($domain), true).";\n"; 29 | 30 | return $output; 31 | } 32 | 33 | /** 34 | * {@inheritdoc} 35 | */ 36 | protected function getExtension() 37 | { 38 | return 'php'; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Dumper/QtFileDumper.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | 16 | /** 17 | * QtFileDumper generates ts files from a message catalogue. 18 | * 19 | * @author Benjamin Eberlei 20 | */ 21 | class QtFileDumper extends FileDumper 22 | { 23 | /** 24 | * {@inheritdoc} 25 | */ 26 | public function format(MessageCatalogue $messages, $domain) 27 | { 28 | $dom = new \DOMDocument('1.0', 'utf-8'); 29 | $dom->formatOutput = true; 30 | $ts = $dom->appendChild($dom->createElement('TS')); 31 | $context = $ts->appendChild($dom->createElement('context')); 32 | $context->appendChild($dom->createElement('name', $domain)); 33 | 34 | foreach ($messages->all($domain) as $source => $target) { 35 | $message = $context->appendChild($dom->createElement('message')); 36 | $message->appendChild($dom->createElement('source', $source)); 37 | $message->appendChild($dom->createElement('translation', $target)); 38 | } 39 | 40 | return $dom->saveXML(); 41 | } 42 | 43 | /** 44 | * {@inheritdoc} 45 | */ 46 | protected function getExtension() 47 | { 48 | return 'ts'; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Dumper/YamlFileDumper.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Yaml\Yaml; 16 | 17 | /** 18 | * YamlFileDumper generates yaml files from a message catalogue. 19 | * 20 | * @author Michel Salib 21 | */ 22 | class YamlFileDumper extends FileDumper 23 | { 24 | /** 25 | * {@inheritdoc} 26 | */ 27 | protected function format(MessageCatalogue $messages, $domain) 28 | { 29 | return Yaml::dump($messages->all($domain)); 30 | } 31 | 32 | /** 33 | * {@inheritdoc} 34 | */ 35 | protected function getExtension() 36 | { 37 | return 'yml'; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Exception/ExceptionInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Exception; 13 | 14 | /** 15 | * Exception interface for all exceptions thrown by the component. 16 | * 17 | * @author Fabien Potencier 18 | * 19 | * @api 20 | */ 21 | interface ExceptionInterface 22 | { 23 | } 24 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Exception/InvalidResourceException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Exception; 13 | 14 | /** 15 | * Thrown when a resource cannot be loaded. 16 | * 17 | * @author Fabien Potencier 18 | * 19 | * @api 20 | */ 21 | class InvalidResourceException extends \InvalidArgumentException implements ExceptionInterface 22 | { 23 | } 24 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Exception/NotFoundResourceException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Exception; 13 | 14 | /** 15 | * Thrown when a resource does not exist. 16 | * 17 | * @author Fabien Potencier 18 | * 19 | * @api 20 | */ 21 | class NotFoundResourceException extends \InvalidArgumentException implements ExceptionInterface 22 | { 23 | } 24 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Extractor/ChainExtractor.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Extractor; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | 16 | /** 17 | * ChainExtractor extracts translation messages from template files. 18 | * 19 | * @author Michel Salib 20 | */ 21 | class ChainExtractor implements ExtractorInterface 22 | { 23 | /** 24 | * The extractors. 25 | * 26 | * @var ExtractorInterface[] 27 | */ 28 | private $extractors = array(); 29 | 30 | /** 31 | * Adds a loader to the translation extractor. 32 | * 33 | * @param string $format The format of the loader 34 | * @param ExtractorInterface $extractor The loader 35 | */ 36 | public function addExtractor($format, ExtractorInterface $extractor) 37 | { 38 | $this->extractors[$format] = $extractor; 39 | } 40 | 41 | /** 42 | * {@inheritdoc} 43 | */ 44 | public function setPrefix($prefix) 45 | { 46 | foreach ($this->extractors as $extractor) { 47 | $extractor->setPrefix($prefix); 48 | } 49 | } 50 | 51 | /** 52 | * {@inheritdoc} 53 | */ 54 | public function extract($directory, MessageCatalogue $catalogue) 55 | { 56 | foreach ($this->extractors as $extractor) { 57 | $extractor->extract($directory, $catalogue); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Extractor/ExtractorInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Extractor; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | 16 | /** 17 | * Extracts translation messages from a template directory to the catalogue. 18 | * New found messages are injected to the catalogue using the prefix. 19 | * 20 | * @author Michel Salib 21 | */ 22 | interface ExtractorInterface 23 | { 24 | /** 25 | * Extracts translation messages from a template directory to the catalogue. 26 | * 27 | * @param string $directory The path to look into 28 | * @param MessageCatalogue $catalogue The catalogue 29 | */ 30 | public function extract($directory, MessageCatalogue $catalogue); 31 | 32 | /** 33 | * Sets the prefix that should be used for new found messages. 34 | * 35 | * @param string $prefix The prefix 36 | */ 37 | public function setPrefix($prefix); 38 | } 39 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2004-2015 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Loader/IniFileLoader.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Loader; 13 | 14 | use Symfony\Component\Translation\Exception\InvalidResourceException; 15 | use Symfony\Component\Translation\Exception\NotFoundResourceException; 16 | use Symfony\Component\Config\Resource\FileResource; 17 | 18 | /** 19 | * IniFileLoader loads translations from an ini file. 20 | * 21 | * @author stealth35 22 | */ 23 | class IniFileLoader extends ArrayLoader 24 | { 25 | /** 26 | * {@inheritdoc} 27 | */ 28 | public function load($resource, $locale, $domain = 'messages') 29 | { 30 | if (!stream_is_local($resource)) { 31 | throw new InvalidResourceException(sprintf('This is not a local file "%s".', $resource)); 32 | } 33 | 34 | if (!file_exists($resource)) { 35 | throw new NotFoundResourceException(sprintf('File "%s" not found.', $resource)); 36 | } 37 | 38 | $messages = parse_ini_file($resource, true); 39 | 40 | $catalogue = parent::load($messages, $locale, $domain); 41 | $catalogue->addResource(new FileResource($resource)); 42 | 43 | return $catalogue; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Loader/LoaderInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Loader; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Exception\InvalidResourceException; 16 | use Symfony\Component\Translation\Exception\NotFoundResourceException; 17 | 18 | /** 19 | * LoaderInterface is the interface implemented by all translation loaders. 20 | * 21 | * @author Fabien Potencier 22 | * 23 | * @api 24 | */ 25 | interface LoaderInterface 26 | { 27 | /** 28 | * Loads a locale. 29 | * 30 | * @param mixed $resource A resource 31 | * @param string $locale A locale 32 | * @param string $domain The domain 33 | * 34 | * @return MessageCatalogue A MessageCatalogue instance 35 | * 36 | * @api 37 | * 38 | * @throws NotFoundResourceException when the resource cannot be found 39 | * @throws InvalidResourceException when the resource cannot be loaded 40 | */ 41 | public function load($resource, $locale, $domain = 'messages'); 42 | } 43 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Loader/PhpFileLoader.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Loader; 13 | 14 | use Symfony\Component\Translation\Exception\InvalidResourceException; 15 | use Symfony\Component\Translation\Exception\NotFoundResourceException; 16 | use Symfony\Component\Config\Resource\FileResource; 17 | 18 | /** 19 | * PhpFileLoader loads translations from PHP files returning an array of translations. 20 | * 21 | * @author Fabien Potencier 22 | * 23 | * @api 24 | */ 25 | class PhpFileLoader extends ArrayLoader 26 | { 27 | /** 28 | * {@inheritdoc} 29 | * 30 | * @api 31 | */ 32 | public function load($resource, $locale, $domain = 'messages') 33 | { 34 | if (!stream_is_local($resource)) { 35 | throw new InvalidResourceException(sprintf('This is not a local file "%s".', $resource)); 36 | } 37 | 38 | if (!file_exists($resource)) { 39 | throw new NotFoundResourceException(sprintf('File "%s" not found.', $resource)); 40 | } 41 | 42 | $messages = require $resource; 43 | 44 | $catalogue = parent::load($messages, $locale, $domain); 45 | $catalogue->addResource(new FileResource($resource)); 46 | 47 | return $catalogue; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/README.md: -------------------------------------------------------------------------------- 1 | Translation Component 2 | ===================== 3 | 4 | Translation provides tools for loading translation files and generating 5 | translated strings from these including support for pluralization. 6 | 7 | ```php 8 | use Symfony\Component\Translation\Translator; 9 | use Symfony\Component\Translation\MessageSelector; 10 | use Symfony\Component\Translation\Loader\ArrayLoader; 11 | 12 | $translator = new Translator('fr_FR', new MessageSelector()); 13 | $translator->setFallbackLocales(array('fr')); 14 | $translator->addLoader('array', new ArrayLoader()); 15 | $translator->addResource('array', array( 16 | 'Hello World!' => 'Bonjour', 17 | ), 'fr'); 18 | 19 | echo $translator->trans('Hello World!')."\n"; 20 | ``` 21 | 22 | Resources 23 | --------- 24 | 25 | Silex integration: 26 | 27 | https://github.com/fabpot/Silex/blob/master/src/Silex/Provider/TranslationServiceProvider.php 28 | 29 | Documentation: 30 | 31 | http://symfony.com/doc/2.6/book/translation.html 32 | 33 | You can run the unit tests with the following command: 34 | 35 | $ cd path/to/Symfony/Component/Translation/ 36 | $ composer install 37 | $ phpunit 38 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Dumper/CsvFileDumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Dumper\CsvFileDumper; 16 | 17 | class CsvFileDumperTest extends \PHPUnit_Framework_TestCase 18 | { 19 | public function testDump() 20 | { 21 | $catalogue = new MessageCatalogue('en'); 22 | $catalogue->add(array('foo' => 'bar', 'bar' => 'foo 23 | foo', 'foo;foo' => 'bar')); 24 | 25 | $tempDir = sys_get_temp_dir(); 26 | $dumper = new CsvFileDumper(); 27 | $dumper->dump($catalogue, array('path' => $tempDir)); 28 | 29 | $this->assertEquals(file_get_contents(__DIR__.'/../fixtures/valid.csv'), file_get_contents($tempDir.'/messages.en.csv')); 30 | 31 | unlink($tempDir.'/messages.en.csv'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Dumper\IcuResFileDumper; 16 | 17 | class IcuResFileDumperTest extends \PHPUnit_Framework_TestCase 18 | { 19 | public function testDump() 20 | { 21 | if (!function_exists('mb_convert_encoding')) { 22 | $this->markTestSkipped('This test requires mbstring to work.'); 23 | } 24 | 25 | $catalogue = new MessageCatalogue('en'); 26 | $catalogue->add(array('foo' => 'bar')); 27 | 28 | $tempDir = sys_get_temp_dir().'/IcuResFileDumperTest'; 29 | $dumper = new IcuResFileDumper(); 30 | $dumper->dump($catalogue, array('path' => $tempDir)); 31 | 32 | $this->assertEquals(file_get_contents(__DIR__.'/../fixtures/resourcebundle/res/en.res'), file_get_contents($tempDir.'/messages/en.res')); 33 | 34 | @unlink($tempDir.'/messages/en.res'); 35 | @rmdir($tempDir.'/messages'); 36 | @rmdir($tempDir); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Dumper/IniFileDumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Dumper\IniFileDumper; 16 | 17 | class IniFileDumperTest extends \PHPUnit_Framework_TestCase 18 | { 19 | public function testDump() 20 | { 21 | $catalogue = new MessageCatalogue('en'); 22 | $catalogue->add(array('foo' => 'bar')); 23 | 24 | $tempDir = sys_get_temp_dir(); 25 | $dumper = new IniFileDumper(); 26 | $dumper->dump($catalogue, array('path' => $tempDir)); 27 | 28 | $this->assertEquals(file_get_contents(__DIR__.'/../fixtures/resources.ini'), file_get_contents($tempDir.'/messages.en.ini')); 29 | 30 | unlink($tempDir.'/messages.en.ini'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Dumper\JsonFileDumper; 16 | 17 | class JsonFileDumperTest extends \PHPUnit_Framework_TestCase 18 | { 19 | public function testDump() 20 | { 21 | if (PHP_VERSION_ID < 50400) { 22 | $this->markTestIncomplete('PHP below 5.4 doesn\'t support JSON pretty printing'); 23 | } 24 | 25 | $catalogue = new MessageCatalogue('en'); 26 | $catalogue->add(array('foo' => 'bar')); 27 | 28 | $tempDir = sys_get_temp_dir(); 29 | $dumper = new JsonFileDumper(); 30 | $dumper->dump($catalogue, array('path' => $tempDir)); 31 | 32 | $this->assertEquals(file_get_contents(__DIR__.'/../fixtures/resources.json'), file_get_contents($tempDir.'/messages.en.json')); 33 | 34 | unlink($tempDir.'/messages.en.json'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Dumper/MoFileDumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Dumper\MoFileDumper; 16 | 17 | class MoFileDumperTest extends \PHPUnit_Framework_TestCase 18 | { 19 | public function testDump() 20 | { 21 | $catalogue = new MessageCatalogue('en'); 22 | $catalogue->add(array('foo' => 'bar')); 23 | 24 | $tempDir = sys_get_temp_dir(); 25 | $dumper = new MoFileDumper(); 26 | $dumper->dump($catalogue, array('path' => $tempDir)); 27 | $this->assertEquals(file_get_contents(__DIR__.'/../fixtures/resources.mo'), file_get_contents($tempDir.'/messages.en.mo')); 28 | 29 | unlink($tempDir.'/messages.en.mo'); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Dumper/PhpFileDumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Dumper\PhpFileDumper; 16 | 17 | class PhpFileDumperTest extends \PHPUnit_Framework_TestCase 18 | { 19 | public function testDump() 20 | { 21 | $catalogue = new MessageCatalogue('en'); 22 | $catalogue->add(array('foo' => 'bar')); 23 | 24 | $tempDir = sys_get_temp_dir(); 25 | $dumper = new PhpFileDumper(); 26 | $dumper->dump($catalogue, array('path' => $tempDir)); 27 | 28 | $this->assertEquals(file_get_contents(__DIR__.'/../fixtures/resources.php'), file_get_contents($tempDir.'/messages.en.php')); 29 | 30 | unlink($tempDir.'/messages.en.php'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Dumper/PoFileDumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Dumper\PoFileDumper; 16 | 17 | class PoFileDumperTest extends \PHPUnit_Framework_TestCase 18 | { 19 | public function testDump() 20 | { 21 | $catalogue = new MessageCatalogue('en'); 22 | $catalogue->add(array('foo' => 'bar')); 23 | 24 | $tempDir = sys_get_temp_dir(); 25 | $dumper = new PoFileDumper(); 26 | $dumper->dump($catalogue, array('path' => $tempDir)); 27 | $this->assertEquals(file_get_contents(__DIR__.'/../fixtures/resources.po'), file_get_contents($tempDir.'/messages.en.po')); 28 | 29 | unlink($tempDir.'/messages.en.po'); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Dumper/QtFileDumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Dumper\QtFileDumper; 16 | 17 | class QtFileDumperTest extends \PHPUnit_Framework_TestCase 18 | { 19 | public function testDump() 20 | { 21 | $catalogue = new MessageCatalogue('en'); 22 | $catalogue->add(array('foo' => 'bar'), 'resources'); 23 | 24 | $tempDir = sys_get_temp_dir(); 25 | $dumper = new QtFileDumper(); 26 | $dumper->dump($catalogue, array('path' => $tempDir)); 27 | 28 | $this->assertEquals(file_get_contents(__DIR__.'/../fixtures/resources.ts'), file_get_contents($tempDir.'/resources.en.ts')); 29 | 30 | unlink($tempDir.'/resources.en.ts'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Dumper/XliffFileDumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Dumper\XliffFileDumper; 16 | 17 | class XliffFileDumperTest extends \PHPUnit_Framework_TestCase 18 | { 19 | public function testDump() 20 | { 21 | $catalogue = new MessageCatalogue('en_US'); 22 | $catalogue->add(array( 23 | 'foo' => 'bar', 24 | 'key' => '', 25 | 'key.with.cdata' => ' & ', 26 | )); 27 | $catalogue->setMetadata('foo', array('notes' => array(array('priority' => 1, 'from' => 'bar', 'content' => 'baz')))); 28 | $catalogue->setMetadata('key', array('notes' => array(array('content' => 'baz'), array('content' => 'qux')))); 29 | 30 | $tempDir = sys_get_temp_dir(); 31 | $dumper = new XliffFileDumper(); 32 | $dumper->dump($catalogue, array('path' => $tempDir, 'default_locale' => 'fr_FR')); 33 | 34 | $this->assertEquals( 35 | file_get_contents(__DIR__.'/../fixtures/resources-clean.xlf'), 36 | file_get_contents($tempDir.'/messages.en_US.xlf') 37 | ); 38 | 39 | unlink($tempDir.'/messages.en_US.xlf'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Dumper/YamlFileDumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Dumper; 13 | 14 | use Symfony\Component\Translation\MessageCatalogue; 15 | use Symfony\Component\Translation\Dumper\YamlFileDumper; 16 | 17 | class YamlFileDumperTest extends \PHPUnit_Framework_TestCase 18 | { 19 | public function testDump() 20 | { 21 | $catalogue = new MessageCatalogue('en'); 22 | $catalogue->add(array('foo' => 'bar')); 23 | 24 | $tempDir = sys_get_temp_dir(); 25 | $dumper = new YamlFileDumper(); 26 | $dumper->dump($catalogue, array('path' => $tempDir)); 27 | 28 | $this->assertEquals(file_get_contents(__DIR__.'/../fixtures/resources.yml'), file_get_contents($tempDir.'/messages.en.yml')); 29 | 30 | unlink($tempDir.'/messages.en.yml'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/IntervalTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests; 13 | 14 | use Symfony\Component\Translation\Interval; 15 | 16 | class IntervalTest extends \PHPUnit_Framework_TestCase 17 | { 18 | /** 19 | * @dataProvider getTests 20 | */ 21 | public function testTest($expected, $number, $interval) 22 | { 23 | $this->assertEquals($expected, Interval::test($number, $interval)); 24 | } 25 | 26 | /** 27 | * @expectedException \InvalidArgumentException 28 | */ 29 | public function testTestException() 30 | { 31 | Interval::test(1, 'foobar'); 32 | } 33 | 34 | public function getTests() 35 | { 36 | return array( 37 | array(true, 3, '{1,2, 3 ,4}'), 38 | array(false, 10, '{1,2, 3 ,4}'), 39 | array(false, 3, '[1,2]'), 40 | array(true, 1, '[1,2]'), 41 | array(true, 2, '[1,2]'), 42 | array(false, 1, ']1,2['), 43 | array(false, 2, ']1,2['), 44 | array(true, log(0), '[-Inf,2['), 45 | array(true, -log(0), '[-2,+Inf]'), 46 | ); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/Loader/LocalizedTestCase.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation\Tests\Loader; 13 | 14 | abstract class LocalizedTestCase extends \PHPUnit_Framework_TestCase 15 | { 16 | protected function setUp() 17 | { 18 | if (!extension_loaded('intl')) { 19 | $this->markTestSkipped('The "intl" extension is not available'); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty-translation.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty-translation.mo -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty-translation.po: -------------------------------------------------------------------------------- 1 | msgid "foo" 2 | msgstr "" 3 | 4 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.csv -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.ini -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.json -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.mo -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.po -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.xlf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.xlf -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/empty.yml -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/encoding.xlf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/encoding.xlf -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/escaped-id-plurals.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Content-Type: text/plain; charset=UTF-8\n" 4 | "Content-Transfer-Encoding: 8bit\n" 5 | "Language: en\n" 6 | 7 | msgid "escaped \"foo\"" 8 | msgid_plural "escaped \"foos\"" 9 | msgstr[0] "escaped \"bar\"" 10 | msgstr[1] "escaped \"bars\"" 11 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/escaped-id.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Content-Type: text/plain; charset=UTF-8\n" 4 | "Content-Transfer-Encoding: 8bit\n" 5 | "Language: en\n" 6 | 7 | msgid "escaped \"foo\"" 8 | msgstr "escaped \"bar\"" 9 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/invalid-xml-resources.xlf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | foo 7 | bar 8 | 9 | 10 | extra 11 | 12 | 13 | key 14 | 15 | 16 | 17 | test 18 | with 19 | note 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/malformed.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" " 3 | } -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/non-valid.xlf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | foo 7 | bar 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/non-valid.yml: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/plurals.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/plurals.mo -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/plurals.po: -------------------------------------------------------------------------------- 1 | msgid "foo" 2 | msgid_plural "foos" 3 | msgstr[0] "bar" 4 | msgstr[1] "bars" 5 | 6 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resname.xlf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | bar 8 | 9 | 10 | bar source 11 | baz 12 | 13 | 14 | baz 15 | foo 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/corrupted/resources.dat: -------------------------------------------------------------------------------- 1 | XXX -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/dat/en.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/dat/en.res -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/dat/en.txt: -------------------------------------------------------------------------------- 1 | en{ 2 | symfony{"Symfony is great"} 3 | } -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/dat/fr.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/dat/fr.res -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/dat/fr.txt: -------------------------------------------------------------------------------- 1 | fr{ 2 | symfony{"Symfony est génial"} 3 | } -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/dat/packagelist.txt: -------------------------------------------------------------------------------- 1 | en.res 2 | fr.res 3 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/dat/resources.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/dat/resources.dat -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/res/en.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resourcebundle/res/en.res -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources-clean.xlf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | foo 7 | bar 8 | baz 9 | 10 | 11 | key 12 | 13 | baz 14 | qux 15 | 16 | 17 | key.with.cdata 18 | & ]]> 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources.csv: -------------------------------------------------------------------------------- 1 | "foo"; "bar" 2 | #"bar"; "foo" 3 | "incorrect"; "number"; "columns"; "will"; "be"; "ignored" 4 | "incorrect" -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources.ini: -------------------------------------------------------------------------------- 1 | foo="bar" 2 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar" 3 | } -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iranw/yarf-framework/b358bb4e4ae70a67a1f783d6aa78788af6b62001/vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources.mo -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources.php: -------------------------------------------------------------------------------- 1 | 'bar', 5 | ); 6 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Content-Type: text/plain; charset=UTF-8\n" 4 | "Content-Transfer-Encoding: 8bit\n" 5 | "Language: en\n" 6 | 7 | msgid "foo" 8 | msgstr "bar" -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | resources 5 | 6 | foo 7 | bar 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources.xlf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | foo 7 | bar 8 | 9 | 10 | extra 11 | 12 | 13 | key 14 | 15 | 16 | 17 | test 18 | with 19 | note 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/resources.yml: -------------------------------------------------------------------------------- 1 | foo: bar 2 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/valid.csv: -------------------------------------------------------------------------------- 1 | foo;bar 2 | bar;"foo 3 | foo" 4 | "foo;foo";bar 5 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/withdoctype.xlf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | foo 8 | bar 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/Tests/fixtures/withnote.xlf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | foo 7 | bar 8 | foo 9 | 10 | 11 | extra 12 | bar 13 | 14 | 15 | key 16 | 17 | baz 18 | qux 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/TranslatorBagInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Translation; 13 | 14 | /** 15 | * TranslatorBagInterface 16 | * 17 | * @author Abdellatif Ait boudad 18 | */ 19 | interface TranslatorBagInterface 20 | { 21 | /** 22 | * Gets the catalogue by locale. 23 | * 24 | * @param string|null $locale The locale or null to use the default 25 | * 26 | * @return MessageCatalogueInterface 27 | */ 28 | public function getCatalogue($locale = null); 29 | } 30 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/translation", 3 | "type": "library", 4 | "description": "Symfony Translation Component", 5 | "keywords": [], 6 | "homepage": "http://symfony.com", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Fabien Potencier", 11 | "email": "fabien@symfony.com" 12 | }, 13 | { 14 | "name": "Symfony Community", 15 | "homepage": "http://symfony.com/contributors" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=5.3.3" 20 | }, 21 | "require-dev": { 22 | "symfony/phpunit-bridge": "~2.7", 23 | "symfony/config": "~2.3,>=2.3.12", 24 | "symfony/intl": "~2.3", 25 | "symfony/yaml": "~2.2", 26 | "psr/log": "~1.0" 27 | }, 28 | "suggest": { 29 | "symfony/config": "", 30 | "symfony/yaml": "", 31 | "psr/log": "To use logging capability in translator" 32 | }, 33 | "autoload": { 34 | "psr-0": { "Symfony\\Component\\Translation\\": "" } 35 | }, 36 | "target-dir": "Symfony/Component/Translation", 37 | "minimum-stability": "dev", 38 | "extra": { 39 | "branch-alias": { 40 | "dev-master": "2.6-dev" 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/symfony/translation/Symfony/Component/Translation/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | ./Tests/ 16 | 17 | 18 | 19 | 20 | 21 | ./ 22 | 23 | ./vendor 24 | ./Tests 25 | 26 | 27 | 28 | 29 | --------------------------------------------------------------------------------