├── README.md ├── composer.json ├── doc ├── User Guide-Magento Elastic Suite for Magento 1.pdf ├── assets │ ├── attribute-config.png │ ├── autocomplete.png │ ├── config-1.png │ ├── config-2.png │ ├── config-3.png │ ├── config-tracker.png │ ├── constant-score-optimizer.png │ ├── facets-1.png │ ├── facets-2.png │ ├── optimizer-list.png │ ├── popularity-optimizer.png │ ├── slideshare.png │ └── virtual-categories.png ├── behavorial-search.md ├── developper-documentation.md ├── indexing.md ├── install.md └── user-documentation.md ├── modman ├── scripts └── install │ ├── es-conf-templates │ ├── elasticsearch.yml │ └── logging.yml │ └── install-es.sh └── src ├── app ├── code │ └── community │ │ └── Smile │ │ ├── ElasticSearch │ │ ├── Block │ │ │ ├── Adminhtml │ │ │ │ ├── Catalog │ │ │ │ │ └── Search │ │ │ │ │ │ ├── Edit.php │ │ │ │ │ │ └── Edit │ │ │ │ │ │ ├── Form.php │ │ │ │ │ │ ├── Tab │ │ │ │ │ │ ├── Boost │ │ │ │ │ │ │ ├── Preview.php │ │ │ │ │ │ │ └── Preview │ │ │ │ │ │ │ │ └── Renderer │ │ │ │ │ │ │ │ └── Position.php │ │ │ │ │ │ └── Main.php │ │ │ │ │ │ └── Tabs.php │ │ │ │ └── Synonym │ │ │ │ │ └── UpdateButton.php │ │ │ ├── Catalog │ │ │ │ └── Layer │ │ │ │ │ ├── Filter │ │ │ │ │ ├── Abstract.php │ │ │ │ │ ├── Attribute.php │ │ │ │ │ ├── Attribute │ │ │ │ │ │ └── Suggest.php │ │ │ │ │ ├── Boolean.php │ │ │ │ │ ├── Category.php │ │ │ │ │ ├── Decimal.php │ │ │ │ │ ├── Price.php │ │ │ │ │ └── Rating.php │ │ │ │ │ └── View.php │ │ │ └── Catalogsearch │ │ │ │ ├── Autocomplete │ │ │ │ └── Suggest │ │ │ │ │ ├── Category.php │ │ │ │ │ ├── Product.php │ │ │ │ │ ├── Product │ │ │ │ │ └── Attributes.php │ │ │ │ │ └── Terms.php │ │ │ │ ├── Layer.php │ │ │ │ ├── Layer │ │ │ │ └── Filter │ │ │ │ │ └── Attribute.php │ │ │ │ └── Result.php │ │ ├── Helper │ │ │ ├── Data.php │ │ │ ├── Elasticsearch.php │ │ │ ├── Groovy.php │ │ │ └── Index.php │ │ ├── Model │ │ │ ├── Adminhtml │ │ │ │ ├── Catalog │ │ │ │ │ └── Product │ │ │ │ │ │ └── Attribute │ │ │ │ │ │ └── Edit │ │ │ │ │ │ └── Form │ │ │ │ │ │ └── Search.php │ │ │ │ └── System │ │ │ │ │ └── Config │ │ │ │ │ ├── Backend │ │ │ │ │ └── Engine.php │ │ │ │ │ └── Source │ │ │ │ │ └── Engine.php │ │ │ ├── Catalog │ │ │ │ ├── Layer.php │ │ │ │ └── Layer │ │ │ │ │ └── Filter │ │ │ │ │ ├── Attribute.php │ │ │ │ │ ├── Boolean.php │ │ │ │ │ ├── Category.php │ │ │ │ │ ├── Decimal.php │ │ │ │ │ ├── Item │ │ │ │ │ └── Category.php │ │ │ │ │ ├── Price.php │ │ │ │ │ └── Rating.php │ │ │ ├── Catalogsearch │ │ │ │ ├── Layer.php │ │ │ │ └── Layer │ │ │ │ │ └── Filter │ │ │ │ │ └── Attribute.php │ │ │ ├── Index │ │ │ │ └── Action │ │ │ │ │ ├── Fulltext │ │ │ │ │ ├── Refresh.php │ │ │ │ │ └── Refresh │ │ │ │ │ │ ├── Changelog.php │ │ │ │ │ │ └── Row.php │ │ │ │ │ └── Search │ │ │ │ │ └── Terms │ │ │ │ │ ├── Refresh.php │ │ │ │ │ └── Refresh │ │ │ │ │ ├── Changelog.php │ │ │ │ │ └── Row.php │ │ │ ├── Indexer │ │ │ │ ├── Fulltext.php │ │ │ │ └── Search │ │ │ │ │ └── Terms │ │ │ │ │ └── Position.php │ │ │ ├── Observer.php │ │ │ ├── Resource │ │ │ │ ├── Advanced.php │ │ │ │ ├── Catalog │ │ │ │ │ ├── Category │ │ │ │ │ │ └── Suggest │ │ │ │ │ │ │ └── Collection.php │ │ │ │ │ └── Product │ │ │ │ │ │ ├── Collection.php │ │ │ │ │ │ └── Suggest │ │ │ │ │ │ └── Collection.php │ │ │ │ ├── CatalogSearch │ │ │ │ │ └── Synonym │ │ │ │ │ │ └── Collection.php │ │ │ │ ├── Engine │ │ │ │ │ ├── Elasticsearch.php │ │ │ │ │ ├── Elasticsearch │ │ │ │ │ │ ├── Abstract.php │ │ │ │ │ │ ├── Index.php │ │ │ │ │ │ ├── Mapping │ │ │ │ │ │ │ ├── Abstract.php │ │ │ │ │ │ │ ├── Catalog │ │ │ │ │ │ │ │ └── Eav │ │ │ │ │ │ │ │ │ └── Abstract.php │ │ │ │ │ │ │ ├── Category.php │ │ │ │ │ │ │ ├── DataProvider │ │ │ │ │ │ │ │ ├── Abstract.php │ │ │ │ │ │ │ │ └── Terms │ │ │ │ │ │ │ │ │ └── Position.php │ │ │ │ │ │ │ └── Product.php │ │ │ │ │ │ └── Query │ │ │ │ │ │ │ ├── Abstract.php │ │ │ │ │ │ │ ├── Autocomplete.php │ │ │ │ │ │ │ ├── Facet │ │ │ │ │ │ │ ├── Abstract.php │ │ │ │ │ │ │ ├── Histogram.php │ │ │ │ │ │ │ ├── QueryGroup.php │ │ │ │ │ │ │ ├── Terms.php │ │ │ │ │ │ │ └── TermsStats.php │ │ │ │ │ │ │ ├── Filter │ │ │ │ │ │ │ ├── Abstract.php │ │ │ │ │ │ │ ├── QueryString.php │ │ │ │ │ │ │ ├── Range.php │ │ │ │ │ │ │ └── Terms.php │ │ │ │ │ │ │ └── Fulltext.php │ │ │ │ │ └── Index.php │ │ │ │ └── Search │ │ │ │ │ └── Term │ │ │ │ │ └── Product │ │ │ │ │ └── Position.php │ │ │ └── Search │ │ │ │ └── Term │ │ │ │ ├── Observer.php │ │ │ │ └── Optimizer.php │ │ ├── controllers │ │ │ ├── Adminhtml │ │ │ │ ├── Catalog │ │ │ │ │ └── SearchController.php │ │ │ │ └── SynonymController.php │ │ │ └── AjaxController.php │ │ ├── etc │ │ │ ├── adminhtml.xml │ │ │ ├── config.xml │ │ │ └── system.xml │ │ └── sql │ │ │ └── smile_elasticsearch_setup │ │ │ ├── install-1.0.0.php │ │ │ ├── upgrade-1.0.0-1.1.0.php │ │ │ ├── upgrade-1.1.0-1.1.1.php │ │ │ ├── upgrade-1.1.1-1.1.2.php │ │ │ ├── upgrade-1.1.2-1.1.3.php │ │ │ ├── upgrade-1.1.3-1.1.4.php │ │ │ ├── upgrade-1.1.4-1.1.5.php │ │ │ ├── upgrade-1.1.5-1.1.6.php │ │ │ ├── upgrade-1.1.6-1.1.7.php │ │ │ ├── upgrade-1.1.7-1.2.0.php │ │ │ ├── upgrade-1.2.0-1.2.1.php │ │ │ ├── upgrade-1.2.1-1.2.2.php │ │ │ └── upgrade-1.2.2-1.3.0.php │ │ ├── SearchandisingSuite │ │ ├── Helper │ │ │ └── Data.php │ │ └── etc │ │ │ ├── adminhtml.xml │ │ │ ├── config.xml │ │ │ └── system.xml │ │ ├── Tracker │ │ ├── Block │ │ │ ├── Config.php │ │ │ └── Variables │ │ │ │ ├── Abstract.php │ │ │ │ ├── Page │ │ │ │ ├── Abstract.php │ │ │ │ ├── Base.php │ │ │ │ ├── Catalog.php │ │ │ │ ├── Cms.php │ │ │ │ ├── Order.php │ │ │ │ └── Search.php │ │ │ │ └── Session │ │ │ │ └── Customer.php │ │ ├── Helper │ │ │ └── Data.php │ │ ├── doc │ │ │ └── INSTALL.txt │ │ └── etc │ │ │ ├── adminhtml.xml │ │ │ ├── config.xml │ │ │ └── system.xml │ │ └── VirtualCategories │ │ ├── Block │ │ └── Adminhtml │ │ │ ├── Catalog │ │ │ └── Category │ │ │ │ └── Tab │ │ │ │ ├── Preview │ │ │ │ ├── Grid.php │ │ │ │ └── Renderer │ │ │ │ │ └── Position.php │ │ │ │ └── Product.php │ │ │ └── Override │ │ │ └── Catalog │ │ │ └── Category │ │ │ ├── Tabs.php │ │ │ └── Tree.php │ │ ├── Helper │ │ ├── Data.php │ │ └── Index.php │ │ ├── Model │ │ ├── Category │ │ │ └── Attributes │ │ │ │ └── Backend │ │ │ │ └── Virtual.php │ │ ├── Index │ │ │ └── Action │ │ │ │ └── VirtualCategories │ │ │ │ └── Product │ │ │ │ └── Position │ │ │ │ ├── Refresh.php │ │ │ │ └── Refresh │ │ │ │ ├── Changelog.php │ │ │ │ └── Row.php │ │ ├── Indexer │ │ │ └── VirtualCategories │ │ │ │ └── Product │ │ │ │ └── Position.php │ │ ├── Observer.php │ │ ├── Resource │ │ │ ├── Catalog │ │ │ │ └── VirtualCategory │ │ │ │ │ ├── Collection.php │ │ │ │ │ └── Product │ │ │ │ │ └── Position.php │ │ │ └── Engine │ │ │ │ └── Elasticsearch │ │ │ │ └── Mapping │ │ │ │ └── DataProvider │ │ │ │ └── VirtualCategories │ │ │ │ └── Position.php │ │ ├── Rule.php │ │ ├── Rule │ │ │ └── Condition │ │ │ │ ├── Combine.php │ │ │ │ ├── Product.php │ │ │ │ └── Product │ │ │ │ └── Attribute.php │ │ └── VirtualCategory │ │ │ └── Product │ │ │ └── Position.php │ │ ├── controllers │ │ └── Adminhtml │ │ │ └── Catalog │ │ │ └── CategoryController.php │ │ ├── etc │ │ ├── config.xml │ │ └── system.xml │ │ └── sql │ │ └── smile_virtualcategories_setup │ │ ├── install-1.0.0.php │ │ ├── upgrade-1.0.0-1.0.1.php │ │ ├── upgrade-1.0.1-1.0.2.php │ │ └── upgrade-1.0.2-1.0.3.php ├── design │ ├── adminhtml │ │ └── default │ │ │ └── default │ │ │ ├── layout │ │ │ └── smile │ │ │ │ ├── elasticsearch.xml │ │ │ │ └── virtualcategories.xml │ │ │ └── template │ │ │ └── smile │ │ │ ├── elasticsearch │ │ │ └── catalog │ │ │ │ └── product │ │ │ │ └── attribute │ │ │ │ └── js.phtml │ │ │ └── virtualcategories │ │ │ └── category │ │ │ ├── preview │ │ │ └── rule_fieldset.phtml │ │ │ ├── product_select_form.phtml │ │ │ └── rule_fieldset.phtml │ └── frontend │ │ ├── base │ │ └── default │ │ │ ├── layout │ │ │ └── smile │ │ │ │ ├── elasticsearch.xml │ │ │ │ └── tracker.xml │ │ │ └── template │ │ │ └── smile │ │ │ ├── elasticsearch │ │ │ ├── autocomplete │ │ │ │ ├── autocomplete.phtml │ │ │ │ ├── form.mini.phtml │ │ │ │ └── suggest │ │ │ │ │ ├── category.phtml │ │ │ │ │ ├── product.phtml │ │ │ │ │ ├── product │ │ │ │ │ └── attributes.phtml │ │ │ │ │ └── terms.phtml │ │ │ └── catalog │ │ │ │ └── layer │ │ │ │ ├── filter.phtml │ │ │ │ └── filter │ │ │ │ ├── price.phtml │ │ │ │ ├── range.phtml │ │ │ │ └── rating.phtml │ │ │ └── tracker │ │ │ ├── config.phtml │ │ │ └── variables │ │ │ ├── page.phtml │ │ │ └── session.phtml │ │ └── rwd │ │ └── default │ │ ├── layout │ │ └── smile │ │ │ └── elasticsearch.xml │ │ └── template │ │ └── smile │ │ └── elasticsearch │ │ └── catalog │ │ └── layer │ │ ├── filter.phtml │ │ └── filter │ │ └── rating.phtml ├── etc │ └── modules │ │ └── Smile_SearchandisingSuite.xml └── locale │ ├── en_US │ ├── Smile_ElasticSearch.csv │ ├── Smile_SearchandisingSuite.csv │ ├── Smile_Tracker.csv │ └── Smile_VirtualCategories.csv │ └── fr_FR │ ├── Smile_ElasticSearch.csv │ ├── Smile_SearchandisingSuite.csv │ ├── Smile_Tracker.csv │ └── Smile_VirtualCategories.csv ├── js └── smile │ ├── elasticsearch │ └── search.js │ └── tracker │ ├── hit.png │ └── tracking.js ├── lib ├── .gitignore ├── composer.json └── vendor │ ├── autoload.php │ ├── composer │ ├── ClassLoader.php │ ├── autoload_classmap.php │ ├── autoload_namespaces.php │ ├── autoload_psr4.php │ ├── autoload_real.php │ └── installed.json │ ├── elasticsearch │ └── elasticsearch │ │ ├── .gitignore │ │ ├── .gitmodules │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── NOTICE │ │ ├── README.md │ │ ├── benchmarks │ │ └── Elasticsearch │ │ │ └── Benchmarks │ │ │ └── IndexingEvent.php │ │ ├── composer.json │ │ ├── docs │ │ ├── configuration.asciidoc │ │ ├── connection-pool.asciidoc │ │ ├── index-operations.asciidoc │ │ ├── index.asciidoc │ │ ├── indexing-operations.asciidoc │ │ ├── installation.asciidoc │ │ ├── namespaces.asciidoc │ │ ├── overview.asciidoc │ │ ├── php-version-requirement.asciidoc │ │ ├── php_json_objects.asciidoc │ │ ├── quickstart.asciidoc │ │ ├── search-operations.asciidoc │ │ └── serializers.asciidoc │ │ ├── run_travis_test.sh │ │ ├── src │ │ └── Elasticsearch │ │ │ ├── Client.php │ │ │ ├── Common │ │ │ ├── AbstractFactory.php │ │ │ ├── DICBuilder.php │ │ │ ├── EmptyLogger.php │ │ │ └── Exceptions │ │ │ │ ├── AlreadyExpiredException.php │ │ │ │ ├── BadMethodCallException.php │ │ │ │ ├── BadRequest400Exception.php │ │ │ │ ├── ClientErrorResponseException.php │ │ │ │ ├── Conflict409Exception.php │ │ │ │ ├── Curl │ │ │ │ ├── CouldNotConnectToHost.php │ │ │ │ ├── CouldNotResolveHostException.php │ │ │ │ └── OperationTimeoutException.php │ │ │ │ ├── ElasticsearchException.php │ │ │ │ ├── Forbidden403Exception.php │ │ │ │ ├── InvalidArgumentException.php │ │ │ │ ├── MaxRetriesException.php │ │ │ │ ├── Missing404Exception.php │ │ │ │ ├── NoDocumentsToGetException.php │ │ │ │ ├── NoNodesAvailableException.php │ │ │ │ ├── NoShardAvailableException.php │ │ │ │ ├── RoutingMissingException.php │ │ │ │ ├── RuntimeException.php │ │ │ │ ├── ScriptLangNotSupportedException.php │ │ │ │ ├── ServerErrorResponseException.php │ │ │ │ ├── TransportException.php │ │ │ │ └── UnexpectedValueException.php │ │ │ ├── ConnectionPool │ │ │ ├── AbstractConnectionPool.php │ │ │ ├── Selectors │ │ │ │ ├── RandomSelector.php │ │ │ │ ├── RoundRobinSelector.php │ │ │ │ ├── SelectorInterface.php │ │ │ │ └── StickyRoundRobinSelector.php │ │ │ ├── SniffingConnectionPool.php │ │ │ ├── StaticConnectionPool.php │ │ │ └── StaticNoPingConnectionPool.php │ │ │ ├── Connections │ │ │ ├── AbstractConnection.php │ │ │ ├── ConnectionFactory.php │ │ │ ├── ConnectionInterface.php │ │ │ ├── CurlMultiConnection.php │ │ │ └── GuzzleConnection.php │ │ │ ├── Endpoints │ │ │ ├── AbstractEndpoint.php │ │ │ ├── Bulk.php │ │ │ ├── BulkEndpointInterface.php │ │ │ ├── Cat │ │ │ │ ├── Aliases.php │ │ │ │ ├── Allocation.php │ │ │ │ ├── Count.php │ │ │ │ ├── Fielddata.php │ │ │ │ ├── Health.php │ │ │ │ ├── Help.php │ │ │ │ ├── Indices.php │ │ │ │ ├── Master.php │ │ │ │ ├── Nodes.php │ │ │ │ ├── PendingTasks.php │ │ │ │ ├── Recovery.php │ │ │ │ ├── Shards.php │ │ │ │ └── ThreadPool.php │ │ │ ├── ClearScroll.php │ │ │ ├── Cluster │ │ │ │ ├── Health.php │ │ │ │ ├── Nodes │ │ │ │ │ ├── AbstractNodesEndpoint.php │ │ │ │ │ ├── HotThreads.php │ │ │ │ │ ├── Info.php │ │ │ │ │ ├── Shutdown.php │ │ │ │ │ └── Stats.php │ │ │ │ ├── PendingTasks.php │ │ │ │ ├── Reroute.php │ │ │ │ ├── Settings │ │ │ │ │ ├── Get.php │ │ │ │ │ └── Put.php │ │ │ │ ├── State.php │ │ │ │ └── Stats.php │ │ │ ├── Count.php │ │ │ ├── CountPercolate.php │ │ │ ├── Delete.php │ │ │ ├── DeleteByQuery.php │ │ │ ├── Exists.php │ │ │ ├── Explain.php │ │ │ ├── Get.php │ │ │ ├── Index.php │ │ │ ├── Indices │ │ │ │ ├── Alias │ │ │ │ │ ├── AbstractAliasEndpoint.php │ │ │ │ │ ├── Delete.php │ │ │ │ │ ├── Exists.php │ │ │ │ │ ├── Get.php │ │ │ │ │ └── Put.php │ │ │ │ ├── Aliases │ │ │ │ │ ├── Get.php │ │ │ │ │ └── Update.php │ │ │ │ ├── Analyze.php │ │ │ │ ├── Cache │ │ │ │ │ └── Clear.php │ │ │ │ ├── ClearCache.php │ │ │ │ ├── Close.php │ │ │ │ ├── Create.php │ │ │ │ ├── Delete.php │ │ │ │ ├── Exists.php │ │ │ │ ├── Exists │ │ │ │ │ └── Types.php │ │ │ │ ├── Field │ │ │ │ │ └── Get.php │ │ │ │ ├── Flush.php │ │ │ │ ├── Gateway │ │ │ │ │ └── Snapshot.php │ │ │ │ ├── Mapping │ │ │ │ │ ├── Delete.php │ │ │ │ │ ├── Get.php │ │ │ │ │ ├── GetField.php │ │ │ │ │ └── Put.php │ │ │ │ ├── Open.php │ │ │ │ ├── Optimize.php │ │ │ │ ├── Recovery.php │ │ │ │ ├── Refresh.php │ │ │ │ ├── Segments.php │ │ │ │ ├── Settings │ │ │ │ │ ├── Get.php │ │ │ │ │ └── Put.php │ │ │ │ ├── Snapshotindex.php │ │ │ │ ├── Stats.php │ │ │ │ ├── Status.php │ │ │ │ ├── Template │ │ │ │ │ ├── AbstractTemplateEndpoint.php │ │ │ │ │ ├── Delete.php │ │ │ │ │ ├── Exists.php │ │ │ │ │ ├── Get.php │ │ │ │ │ └── Put.php │ │ │ │ ├── Type │ │ │ │ │ └── Exists.php │ │ │ │ ├── Validate │ │ │ │ │ └── Query.php │ │ │ │ ├── ValidateQuery.php │ │ │ │ └── Warmer │ │ │ │ │ ├── AbstractWarmerEndpoint.php │ │ │ │ │ ├── Delete.php │ │ │ │ │ ├── Get.php │ │ │ │ │ └── Put.php │ │ │ ├── Info.php │ │ │ ├── MPercolate.php │ │ │ ├── MTermVectors.php │ │ │ ├── Mget.php │ │ │ ├── Mlt.php │ │ │ ├── Msearch.php │ │ │ ├── Percolate.php │ │ │ ├── Ping.php │ │ │ ├── Script │ │ │ │ ├── Delete.php │ │ │ │ ├── Get.php │ │ │ │ └── Put.php │ │ │ ├── Scroll.php │ │ │ ├── Search.php │ │ │ ├── SearchShards.php │ │ │ ├── SearchTemplate.php │ │ │ ├── Snapshot │ │ │ │ ├── Create.php │ │ │ │ ├── Delete.php │ │ │ │ ├── Get.php │ │ │ │ ├── Repository │ │ │ │ │ ├── Create.php │ │ │ │ │ ├── Delete.php │ │ │ │ │ └── Get.php │ │ │ │ ├── Restore.php │ │ │ │ └── Status.php │ │ │ ├── Source │ │ │ │ └── Get.php │ │ │ ├── Suggest.php │ │ │ ├── Template │ │ │ │ ├── Delete.php │ │ │ │ ├── Get.php │ │ │ │ └── Put.php │ │ │ ├── TermVector.php │ │ │ └── Update.php │ │ │ ├── Namespaces │ │ │ ├── AbstractNamespace.php │ │ │ ├── CatNamespace.php │ │ │ ├── ClusterNamespace.php │ │ │ ├── IndicesNamespace.php │ │ │ ├── NodesNamespace.php │ │ │ └── SnapshotNamespace.php │ │ │ ├── Serializers │ │ │ ├── ArrayToJSONSerializer.php │ │ │ ├── EverythingToJSONSerializer.php │ │ │ ├── SerializerInterface.php │ │ │ └── SmartSerializer.php │ │ │ └── Transport.php │ │ ├── tests │ │ ├── Elasticsearch │ │ │ └── Tests │ │ │ │ ├── ClientTest.php │ │ │ │ ├── ConnectionPool │ │ │ │ ├── Selectors │ │ │ │ │ ├── RoundRobinSelectorTest.php │ │ │ │ │ └── StickyRoundRobinSelectorTest.php │ │ │ │ ├── SniffingConnectionPoolIntegrationTest.php │ │ │ │ ├── SniffingConnectionPoolTest.php │ │ │ │ └── StaticConnectionPoolTest.php │ │ │ │ ├── Connections │ │ │ │ ├── AbstractConnectionTest.php │ │ │ │ ├── ConnectionFactoryTest.php │ │ │ │ ├── CurlMultiConnectionTest.php │ │ │ │ ├── GuzzleConnectionIntegrationTest.php │ │ │ │ └── GuzzleConnectionTest.php │ │ │ │ ├── Endpoints │ │ │ │ ├── AbstractEndpointTest.php │ │ │ │ ├── BulkTest.php │ │ │ │ ├── Cluster │ │ │ │ │ ├── HealthTest.php │ │ │ │ │ ├── Nodes │ │ │ │ │ │ ├── HotThreadsTest.php │ │ │ │ │ │ ├── InfoTest.php │ │ │ │ │ │ └── ShutdownTest.php │ │ │ │ │ ├── RerouteTest.php │ │ │ │ │ ├── Settings │ │ │ │ │ │ ├── GetTest.php │ │ │ │ │ │ └── PutTest.php │ │ │ │ │ └── StateTest.php │ │ │ │ ├── CountTest.php │ │ │ │ ├── DeleteTest.php │ │ │ │ ├── ExplainTest.php │ │ │ │ ├── GetTest.php │ │ │ │ ├── IndexTest.php │ │ │ │ ├── Indices │ │ │ │ │ ├── Alias │ │ │ │ │ │ ├── AliasesTest.php │ │ │ │ │ │ ├── DeleteTest.php │ │ │ │ │ │ ├── GetTest.php │ │ │ │ │ │ └── PutTest.php │ │ │ │ │ ├── AnalyzeTest.php │ │ │ │ │ ├── Cache │ │ │ │ │ │ └── ClearTest.php │ │ │ │ │ ├── CloseTest.php │ │ │ │ │ ├── CreateTest.php │ │ │ │ │ ├── DeleteTest.php │ │ │ │ │ ├── Exists │ │ │ │ │ │ ├── IndicesTest.php │ │ │ │ │ │ └── TypesTest.php │ │ │ │ │ ├── FlushTest.php │ │ │ │ │ ├── Gateway │ │ │ │ │ │ └── SnapshotTest.php │ │ │ │ │ ├── Mapping │ │ │ │ │ │ ├── DeleteTest.php │ │ │ │ │ │ ├── GetFieldTest.php │ │ │ │ │ │ ├── GetTest.php │ │ │ │ │ │ └── PutTest.php │ │ │ │ │ ├── OpenTest.php │ │ │ │ │ ├── OptimizeTest.php │ │ │ │ │ ├── RefreshTest.php │ │ │ │ │ ├── SegmentsTest.php │ │ │ │ │ ├── Settings │ │ │ │ │ │ ├── GetTest.php │ │ │ │ │ │ └── PutTest.php │ │ │ │ │ ├── StatusTest.php │ │ │ │ │ ├── Template │ │ │ │ │ │ ├── DeleteTest.php │ │ │ │ │ │ ├── GetTest.php │ │ │ │ │ │ └── PutTest.php │ │ │ │ │ ├── Validate │ │ │ │ │ │ └── QueryTest.php │ │ │ │ │ └── Warmer │ │ │ │ │ │ ├── DeleteTest.php │ │ │ │ │ │ ├── GetTest.php │ │ │ │ │ │ └── PutTest.php │ │ │ │ ├── InfoTest.php │ │ │ │ ├── MgetTest.php │ │ │ │ ├── MltTest.php │ │ │ │ ├── MsearchTest.php │ │ │ │ ├── PercolateTest.php │ │ │ │ ├── ScrollTest.php │ │ │ │ ├── SearchTest.php │ │ │ │ ├── SuggestTest.php │ │ │ │ └── UpdateTest.php │ │ │ │ ├── Serializers │ │ │ │ ├── ArrayToJSONSerializerTest.php │ │ │ │ └── EverythingToJSONSerializerTest.php │ │ │ │ ├── TransportTest.php │ │ │ │ └── YamlRunnerTest.php │ │ └── bootstrap.php │ │ └── util │ │ ├── RestSpecRunner.php │ │ ├── SpecParser.php │ │ └── templates │ │ └── endpoint.twig │ ├── guzzle │ ├── common │ │ └── Guzzle │ │ │ └── Common │ │ │ ├── AbstractHasDispatcher.php │ │ │ ├── Collection.php │ │ │ ├── Event.php │ │ │ ├── Exception │ │ │ ├── BadMethodCallException.php │ │ │ ├── ExceptionCollection.php │ │ │ ├── GuzzleException.php │ │ │ ├── InvalidArgumentException.php │ │ │ ├── RuntimeException.php │ │ │ └── UnexpectedValueException.php │ │ │ ├── FromConfigInterface.php │ │ │ ├── HasDispatcherInterface.php │ │ │ ├── ToArrayInterface.php │ │ │ ├── Version.php │ │ │ └── composer.json │ ├── http │ │ └── Guzzle │ │ │ └── Http │ │ │ ├── AbstractEntityBodyDecorator.php │ │ │ ├── CachingEntityBody.php │ │ │ ├── Client.php │ │ │ ├── ClientInterface.php │ │ │ ├── Curl │ │ │ ├── CurlHandle.php │ │ │ ├── CurlMulti.php │ │ │ ├── CurlMultiInterface.php │ │ │ ├── CurlMultiProxy.php │ │ │ ├── CurlVersion.php │ │ │ └── RequestMediator.php │ │ │ ├── EntityBody.php │ │ │ ├── EntityBodyInterface.php │ │ │ ├── Exception │ │ │ ├── BadResponseException.php │ │ │ ├── ClientErrorResponseException.php │ │ │ ├── CouldNotRewindStreamException.php │ │ │ ├── CurlException.php │ │ │ ├── HttpException.php │ │ │ ├── MultiTransferException.php │ │ │ ├── RequestException.php │ │ │ ├── ServerErrorResponseException.php │ │ │ └── TooManyRedirectsException.php │ │ │ ├── IoEmittingEntityBody.php │ │ │ ├── Message │ │ │ ├── AbstractMessage.php │ │ │ ├── EntityEnclosingRequest.php │ │ │ ├── EntityEnclosingRequestInterface.php │ │ │ ├── Header.php │ │ │ ├── Header │ │ │ │ ├── CacheControl.php │ │ │ │ ├── HeaderCollection.php │ │ │ │ ├── HeaderFactory.php │ │ │ │ ├── HeaderFactoryInterface.php │ │ │ │ ├── HeaderInterface.php │ │ │ │ └── Link.php │ │ │ ├── MessageInterface.php │ │ │ ├── PostFile.php │ │ │ ├── PostFileInterface.php │ │ │ ├── Request.php │ │ │ ├── RequestFactory.php │ │ │ ├── RequestFactoryInterface.php │ │ │ ├── RequestInterface.php │ │ │ └── Response.php │ │ │ ├── Mimetypes.php │ │ │ ├── QueryAggregator │ │ │ ├── CommaAggregator.php │ │ │ ├── DuplicateAggregator.php │ │ │ ├── PhpAggregator.php │ │ │ └── QueryAggregatorInterface.php │ │ │ ├── QueryString.php │ │ │ ├── ReadLimitEntityBody.php │ │ │ ├── RedirectPlugin.php │ │ │ ├── Resources │ │ │ └── cacert.pem │ │ │ ├── StaticClient.php │ │ │ ├── Url.php │ │ │ └── composer.json │ ├── parser │ │ └── Guzzle │ │ │ └── Parser │ │ │ ├── Cookie │ │ │ ├── CookieParser.php │ │ │ └── CookieParserInterface.php │ │ │ ├── Message │ │ │ ├── AbstractMessageParser.php │ │ │ ├── MessageParser.php │ │ │ ├── MessageParserInterface.php │ │ │ └── PeclHttpMessageParser.php │ │ │ ├── ParserRegistry.php │ │ │ ├── UriTemplate │ │ │ ├── PeclUriTemplate.php │ │ │ ├── UriTemplate.php │ │ │ └── UriTemplateInterface.php │ │ │ ├── Url │ │ │ ├── UrlParser.php │ │ │ └── UrlParserInterface.php │ │ │ └── composer.json │ └── stream │ │ └── Guzzle │ │ └── Stream │ │ ├── PhpStreamRequestFactory.php │ │ ├── Stream.php │ │ ├── StreamInterface.php │ │ ├── StreamRequestFactoryInterface.php │ │ └── composer.json │ ├── monolog │ └── monolog │ │ ├── CHANGELOG.mdown │ │ ├── LICENSE │ │ ├── README.mdown │ │ ├── composer.json │ │ ├── doc │ │ ├── extending.md │ │ ├── sockets.md │ │ └── usage.md │ │ ├── phpunit.xml.dist │ │ ├── src │ │ └── Monolog │ │ │ ├── ErrorHandler.php │ │ │ ├── Formatter │ │ │ ├── ChromePHPFormatter.php │ │ │ ├── ElasticaFormatter.php │ │ │ ├── FlowdockFormatter.php │ │ │ ├── FormatterInterface.php │ │ │ ├── GelfMessageFormatter.php │ │ │ ├── HtmlFormatter.php │ │ │ ├── JsonFormatter.php │ │ │ ├── LineFormatter.php │ │ │ ├── LogglyFormatter.php │ │ │ ├── LogstashFormatter.php │ │ │ ├── NormalizerFormatter.php │ │ │ ├── ScalarFormatter.php │ │ │ └── WildfireFormatter.php │ │ │ ├── Handler │ │ │ ├── AbstractHandler.php │ │ │ ├── AbstractProcessingHandler.php │ │ │ ├── AbstractSyslogHandler.php │ │ │ ├── AmqpHandler.php │ │ │ ├── BrowserConsoleHandler.php │ │ │ ├── BufferHandler.php │ │ │ ├── ChromePHPHandler.php │ │ │ ├── CouchDBHandler.php │ │ │ ├── CubeHandler.php │ │ │ ├── DoctrineCouchDBHandler.php │ │ │ ├── DynamoDbHandler.php │ │ │ ├── ElasticSearchHandler.php │ │ │ ├── ErrorLogHandler.php │ │ │ ├── FilterHandler.php │ │ │ ├── FingersCrossed │ │ │ │ ├── ActivationStrategyInterface.php │ │ │ │ ├── ChannelLevelActivationStrategy.php │ │ │ │ └── ErrorLevelActivationStrategy.php │ │ │ ├── FingersCrossedHandler.php │ │ │ ├── FirePHPHandler.php │ │ │ ├── FlowdockHandler.php │ │ │ ├── GelfHandler.php │ │ │ ├── GroupHandler.php │ │ │ ├── HandlerInterface.php │ │ │ ├── HipChatHandler.php │ │ │ ├── LogEntriesHandler.php │ │ │ ├── LogglyHandler.php │ │ │ ├── MailHandler.php │ │ │ ├── MissingExtensionException.php │ │ │ ├── MongoDBHandler.php │ │ │ ├── NativeMailerHandler.php │ │ │ ├── NewRelicHandler.php │ │ │ ├── NullHandler.php │ │ │ ├── PushoverHandler.php │ │ │ ├── RavenHandler.php │ │ │ ├── RedisHandler.php │ │ │ ├── RollbarHandler.php │ │ │ ├── RotatingFileHandler.php │ │ │ ├── SocketHandler.php │ │ │ ├── StreamHandler.php │ │ │ ├── SwiftMailerHandler.php │ │ │ ├── SyslogHandler.php │ │ │ ├── SyslogUdp │ │ │ │ └── UdpSocket.php │ │ │ ├── SyslogUdpHandler.php │ │ │ ├── TestHandler.php │ │ │ └── ZendMonitorHandler.php │ │ │ ├── Logger.php │ │ │ ├── Processor │ │ │ ├── GitProcessor.php │ │ │ ├── IntrospectionProcessor.php │ │ │ ├── MemoryPeakUsageProcessor.php │ │ │ ├── MemoryProcessor.php │ │ │ ├── MemoryUsageProcessor.php │ │ │ ├── ProcessIdProcessor.php │ │ │ ├── PsrLogMessageProcessor.php │ │ │ ├── TagProcessor.php │ │ │ ├── UidProcessor.php │ │ │ └── WebProcessor.php │ │ │ └── Registry.php │ │ └── tests │ │ ├── Monolog │ │ ├── ErrorHandlerTest.php │ │ ├── Formatter │ │ │ ├── ChromePHPFormatterTest.php │ │ │ ├── ElasticaFormatterTest.php │ │ │ ├── FlowdockFormatterTest.php │ │ │ ├── GelfMessageFormatterTest.php │ │ │ ├── JsonFormatterTest.php │ │ │ ├── LineFormatterTest.php │ │ │ ├── LogglyFormatterTest.php │ │ │ ├── LogstashFormatterTest.php │ │ │ ├── NormalizerFormatterTest.php │ │ │ ├── ScalarFormatterTest.php │ │ │ └── WildfireFormatterTest.php │ │ ├── Functional │ │ │ └── Handler │ │ │ │ └── FirePHPHandlerTest.php │ │ ├── Handler │ │ │ ├── AbstractHandlerTest.php │ │ │ ├── AbstractProcessingHandlerTest.php │ │ │ ├── AmqpHandlerTest.php │ │ │ ├── BrowserConsoleHandlerTest.php │ │ │ ├── BufferHandlerTest.php │ │ │ ├── ChromePHPHandlerTest.php │ │ │ ├── CouchDBHandlerTest.php │ │ │ ├── DoctrineCouchDBHandlerTest.php │ │ │ ├── DynamoDbHandlerTest.php │ │ │ ├── ElasticSearchHandlerTest.php │ │ │ ├── ErrorLogHandlerTest.php │ │ │ ├── FilterHandlerTest.php │ │ │ ├── FingersCrossedHandlerTest.php │ │ │ ├── FirePHPHandlerTest.php │ │ │ ├── Fixtures │ │ │ │ └── .gitkeep │ │ │ ├── FlowdockHandlerTest.php │ │ │ ├── GelfHandlerLegacyTest.php │ │ │ ├── GelfHandlerTest.php │ │ │ ├── GroupHandlerTest.php │ │ │ ├── HipChatHandlerTest.php │ │ │ ├── LogEntriesHandlerTest.php │ │ │ ├── MailHandlerTest.php │ │ │ ├── MockRavenClient.php │ │ │ ├── MongoDBHandlerTest.php │ │ │ ├── NativeMailerHandlerTest.php │ │ │ ├── NewRelicHandlerTest.php │ │ │ ├── NullHandlerTest.php │ │ │ ├── PushoverHandlerTest.php │ │ │ ├── RavenHandlerTest.php │ │ │ ├── RedisHandlerTest.php │ │ │ ├── RotatingFileHandlerTest.php │ │ │ ├── SocketHandlerTest.php │ │ │ ├── StreamHandlerTest.php │ │ │ ├── SyslogHandlerTest.php │ │ │ ├── SyslogUdpHandlerTest.php │ │ │ ├── TestHandlerTest.php │ │ │ ├── UdpSocketTest.php │ │ │ └── ZendMonitorHandlerTest.php │ │ ├── LoggerTest.php │ │ ├── Processor │ │ │ ├── GitProcessorTest.php │ │ │ ├── IntrospectionProcessorTest.php │ │ │ ├── MemoryPeakUsageProcessorTest.php │ │ │ ├── MemoryUsageProcessorTest.php │ │ │ ├── ProcessIdProcessorTest.php │ │ │ ├── TagProcessorTest.php │ │ │ ├── UidProcessorTest.php │ │ │ └── WebProcessorTest.php │ │ ├── PsrLogCompatTest.php │ │ └── TestCase.php │ │ └── bootstrap.php │ ├── pimple │ └── pimple │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── CHANGELOG │ │ ├── LICENSE │ │ ├── README.rst │ │ ├── composer.json │ │ ├── ext │ │ └── pimple │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── config.m4 │ │ │ ├── config.w32 │ │ │ ├── php_pimple.h │ │ │ ├── pimple.c │ │ │ ├── pimple_compat.h │ │ │ └── tests │ │ │ ├── 001.phpt │ │ │ ├── 002.phpt │ │ │ ├── 003.phpt │ │ │ ├── 004.phpt │ │ │ ├── 005.phpt │ │ │ ├── 006.phpt │ │ │ ├── 007.phpt │ │ │ ├── 008.phpt │ │ │ ├── 009.phpt │ │ │ ├── 010.phpt │ │ │ ├── 011.phpt │ │ │ ├── 012.phpt │ │ │ ├── 013.phpt │ │ │ ├── 014.phpt │ │ │ ├── 015.phpt │ │ │ ├── 016.phpt │ │ │ ├── 017.phpt │ │ │ ├── 017_1.phpt │ │ │ ├── 018.phpt │ │ │ ├── bench.phpb │ │ │ └── bench_shared.phpb │ │ ├── phpunit.xml.dist │ │ ├── src │ │ ├── Pimple.php │ │ └── Pimple │ │ │ ├── Container.php │ │ │ └── ServiceProviderInterface.php │ │ └── tests │ │ ├── Fixtures │ │ ├── Invokable.php │ │ ├── NonInvokable.php │ │ ├── PimpleServiceProvider.php │ │ └── Service.php │ │ ├── PimpleServiceProviderInterfaceTest.php │ │ └── PimpleTest.php │ ├── psr │ └── log │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── Psr │ │ └── Log │ │ │ ├── AbstractLogger.php │ │ │ ├── InvalidArgumentException.php │ │ │ ├── LogLevel.php │ │ │ ├── LoggerAwareInterface.php │ │ │ ├── LoggerAwareTrait.php │ │ │ ├── LoggerInterface.php │ │ │ ├── LoggerTrait.php │ │ │ ├── NullLogger.php │ │ │ └── Test │ │ │ └── LoggerInterfaceTest.php │ │ ├── README.md │ │ └── composer.json │ └── symfony │ └── event-dispatcher │ └── Symfony │ └── Component │ └── EventDispatcher │ ├── .gitignore │ ├── CHANGELOG.md │ ├── ContainerAwareEventDispatcher.php │ ├── Debug │ ├── TraceableEventDispatcher.php │ ├── TraceableEventDispatcherInterface.php │ └── WrappedListener.php │ ├── DependencyInjection │ └── RegisterListenersPass.php │ ├── Event.php │ ├── EventDispatcher.php │ ├── EventDispatcherInterface.php │ ├── EventSubscriberInterface.php │ ├── GenericEvent.php │ ├── ImmutableEventDispatcher.php │ ├── LICENSE │ ├── README.md │ ├── Tests │ ├── ContainerAwareEventDispatcherTest.php │ ├── Debug │ │ └── TraceableEventDispatcherTest.php │ ├── DependencyInjection │ │ └── RegisterListenersPassTest.php │ ├── EventDispatcherTest.php │ ├── EventTest.php │ ├── GenericEventTest.php │ └── ImmutableEventDispatcherTest.php │ ├── composer.json │ └── phpunit.xml.dist └── skin └── frontend ├── base └── default │ └── css │ └── smile │ └── elasticsearch.css └── rwd └── default └── css └── smile └── elasticsearch.css /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "smile/elasticsearch", 3 | "description": "Magento ElasticSearch Implementation", 4 | "homepage": "https://github.com/Smile-SA/smile-magento-elasticsearch", 5 | "license": "tobedefined", 6 | "type": "magento-module", 7 | "authors": [ 8 | { 9 | "name": "Aurélien FOUCRET", 10 | "email": "aurelien.foucret@smile.fr" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /doc/User Guide-Magento Elastic Suite for Magento 1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/User Guide-Magento Elastic Suite for Magento 1.pdf -------------------------------------------------------------------------------- /doc/assets/attribute-config.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/attribute-config.png -------------------------------------------------------------------------------- /doc/assets/autocomplete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/autocomplete.png -------------------------------------------------------------------------------- /doc/assets/config-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/config-1.png -------------------------------------------------------------------------------- /doc/assets/config-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/config-2.png -------------------------------------------------------------------------------- /doc/assets/config-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/config-3.png -------------------------------------------------------------------------------- /doc/assets/config-tracker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/config-tracker.png -------------------------------------------------------------------------------- /doc/assets/constant-score-optimizer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/constant-score-optimizer.png -------------------------------------------------------------------------------- /doc/assets/facets-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/facets-1.png -------------------------------------------------------------------------------- /doc/assets/facets-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/facets-2.png -------------------------------------------------------------------------------- /doc/assets/optimizer-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/optimizer-list.png -------------------------------------------------------------------------------- /doc/assets/popularity-optimizer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/popularity-optimizer.png -------------------------------------------------------------------------------- /doc/assets/slideshare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/slideshare.png -------------------------------------------------------------------------------- /doc/assets/virtual-categories.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/doc/assets/virtual-categories.png -------------------------------------------------------------------------------- /modman: -------------------------------------------------------------------------------- 1 | src/app/code/community/Smile/* app/code/community/Smile/ 2 | src/app/design/adminhtml/default/default/layout/smile/* app/design/adminhtml/default/default/layout/smile/ 3 | src/app/design/adminhtml/default/default/template/smile/* app/design/adminhtml/default/default/template/smile/ 4 | src/app/design/frontend/base/default/layout/smile/* app/design/frontend/base/default/layout/smile/ 5 | src/app/design/frontend/base/default/template/smile/* app/design/frontend/base/default/template/smile/ 6 | src/app/design/frontend/rwd/default/layout/smile/* app/design/frontend/rwd/default/layout/smile/ 7 | src/app/design/frontend/rwd/default/template/smile/* app/design/frontend/rwd/default/template/smile/ 8 | src/app/etc/modules/* app/etc/modules/ 9 | src/app/locale/en_US/* app/locale/en_US/ 10 | src/app/locale/fr_FR/* app/locale/fr_FR/ 11 | src/js/smile/* js/smile/ 12 | src/lib/* lib/ 13 | src/skin/frontend/base/default/css/smile/* skin/frontend/base/default/css/smile/ 14 | src/skin/frontend/rwd/default/css/smile/* skin/frontend/rwd/default/css/smile/ 15 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Block/Adminhtml/Catalog/Search/Edit/Form.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Romain Ruaud 16 | * @copyright 2015 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | class Smile_ElasticSearch_Block_Adminhtml_Catalog_Search_Edit_Form extends Mage_Adminhtml_Block_Widget_Form 20 | { 21 | /** 22 | * Create the form and append field to it. 23 | * 24 | * @return Smile_ElasticSearch_Block_Adminhtml_Optimizer_Edit_Form 25 | */ 26 | protected function _prepareForm() 27 | { 28 | $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post')); 29 | $form->setUseContainer(true); 30 | $this->setForm($form); 31 | return parent::_prepareForm(); 32 | } 33 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Block/Adminhtml/Catalog/Search/Edit/Tabs.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Romain Ruaud 16 | * @copyright 2015 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | class Smile_ElasticSearch_Block_Adminhtml_Catalog_Search_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs 20 | { 21 | /** 22 | * Init tabs 23 | * 24 | * @return Smile_ElasticSearch_Block_Adminhtml_Catalog_Search_Edit_Tabs 25 | */ 26 | public function __construct() 27 | { 28 | parent::__construct(); 29 | $this->setId('smile_catalog_search_edit_tabs'); 30 | $this->setDestElementId('edit_form'); 31 | $this->setTitle($this->__('Edit search term')); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Block/Catalog/Layer/Filter/Abstract.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Aurelien FOUCRET 16 | * @copyright 2013 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | class Smile_ElasticSearch_Block_Catalog_Layer_Filter_Abstract extends Mage_Catalog_Block_Layer_Filter_Abstract 20 | { 21 | /** 22 | * Return the filter request var (used to build URL) 23 | * 24 | * @return string 25 | */ 26 | public function getRequestVar() 27 | { 28 | return $this->_filter->getRequestVar(); 29 | } 30 | 31 | /** 32 | * Indicates if the filters has more value than what have been currently fetch. 33 | * 34 | * @return boolean 35 | */ 36 | public function hasOthers() 37 | { 38 | return $this->_filter->hasOthers(); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Block/Catalog/Layer/Filter/Boolean.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Aurelien FOUCRET 16 | * @copyright 2013 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | class Smile_ElasticSearch_Block_Catalog_Layer_Filter_Boolean extends Smile_ElasticSearch_Block_Catalog_Layer_Filter_Attribute 20 | { 21 | /** 22 | * Defines specific filter model name. 23 | * 24 | * @see Smile_ElasticSearch_Model_Catalog_Layer_Filter_Boolean 25 | */ 26 | public function __construct() 27 | { 28 | parent::__construct(); 29 | $this->_filterModelName = 'smile_elasticsearch/catalog_layer_filter_boolean'; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Block/Catalogsearch/Result.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Aurelien FOUCRET 16 | * @copyright 2013 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | class Smile_ElasticSearch_Block_Catalogsearch_Result extends Mage_CatalogSearch_Block_Result 20 | { 21 | /** 22 | * Retrieve search result count 23 | * 24 | * @return string 25 | */ 26 | public function getResultCount() 27 | { 28 | if (!$this->getData('result_count')) { 29 | $productCollection = $this->_getProductCollection(); 30 | $size = $productCollection->getSize(); 31 | if ($productCollection->isSpellchecked()) { 32 | $this->_getQuery()->setNumResults(0); 33 | } else { 34 | $this->_getQuery()->setNumResults($size); 35 | } 36 | 37 | $this->setResultCount($size); 38 | } 39 | return $this->getData('result_count'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Helper/Index.php: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2015 Smile 14 | * @license Apache License Version 2.0 15 | */ 16 | class Smile_ElasticSearch_Helper_Index extends Enterprise_Index_Helper_Data 17 | { 18 | /** 19 | * Path to price indexer mode 20 | */ 21 | const XML_PATH_LIVE_SEARCH_TERM_PRODUCT_POSITION_REINDEX_ENABLED = 'index_management/index_options/search_terms_products_position'; 22 | 23 | /** 24 | * Retrieve products positions in search index mode 25 | * 26 | * @return boolean 27 | */ 28 | public function isLiveProductPositionInSearchReindexEnabled() 29 | { 30 | return Mage::getStoreConfigFlag(self::XML_PATH_LIVE_SEARCH_TERM_PRODUCT_POSITION_REINDEX_ENABLED); 31 | } 32 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Model/Catalogsearch/Layer/Filter/Attribute.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Aurelien FOUCRET 16 | * @copyright 2013 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | class Smile_ElasticSearch_Model_Catalogsearch_Layer_Filter_Attribute extends Smile_ElasticSearch_Model_Catalog_Layer_Filter_Attribute 20 | { 21 | /** 22 | * Indicate if attribute is filterable in search. 23 | * 24 | * @param Mage_Catalog_Model_Entity_Attribute $attribute Attribute to be tested 25 | * 26 | * @return bool 27 | */ 28 | protected function _getIsFilterableAttribute($attribute) 29 | { 30 | return $attribute->getIsFilterableInSearch(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Model/Resource/Advanced.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Aurelien FOUCRET 16 | * @copyright 2013 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | class Smile_ElasticSearch_Model_Resource_Advanced extends Mage_CatalogSearch_Model_Resource_Advanced 20 | { 21 | 22 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Model/Resource/Engine/Elasticsearch/Query/Facet/TermsStats.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Aurelien FOUCRET 16 | * @copyright 2013 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | class Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Query_Facet_TermsStats 20 | extends Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Query_Facet_Terms 21 | { 22 | /** 23 | * Transform the facet into an ES syntax compliant array. 24 | * 25 | * @return array 26 | */ 27 | protected function _getFacetQuery() 28 | { 29 | return array('terms_stats' => $this->_options); 30 | } 31 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Model/Resource/Engine/Elasticsearch/Query/Filter/QueryString.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Aurelien FOUCRET 16 | * @copyright 2013 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | class Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Query_Filter_QueryString 20 | extends Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Query_Filter_Abstract 21 | { 22 | /** 23 | * Transform the filter into an ES syntax compliant array. 24 | * 25 | * @return array 26 | */ 27 | public function getFilterQuery() 28 | { 29 | $query = array('query_string' => array('query' => $this->_options['query_string'])); 30 | return array('fquery' => array('query' => $query, '_cache' => true)); 31 | } 32 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/Model/Resource/Engine/Elasticsearch/Query/Filter/Range.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Aurelien FOUCRET 16 | * @copyright 2013 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | class Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Query_Filter_Range 20 | extends Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch_Query_Filter_Abstract 21 | { 22 | /** 23 | * Transform the filter into an ES syntax compliant array. 24 | * 25 | * @return array 26 | */ 27 | public function getFilterQuery() 28 | { 29 | return array('range' => $this->_options); 30 | } 31 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/sql/smile_elasticsearch_setup/install-1.0.0.php: -------------------------------------------------------------------------------- 1 | previous module 13 | * available at https://github.com/jreinke/magento-elasticsearch 14 | * 15 | * @category Smile 16 | * @package Smile_ElasticSearch 17 | * @author Aurelien FOUCRET 18 | * @copyright 2013 Smile 19 | * @license Apache License Version 2.0 20 | */ 21 | 22 | $installer = $this; 23 | $installer->startSetup(); 24 | 25 | try { 26 | $installer->getConnection()->addColumn( 27 | $installer->getTable('catalog/eav_attribute'), 28 | 'search_weight', 29 | "tinyint(1) unsigned NOT NULL DEFAULT '1' after `is_searchable`" 30 | ); 31 | } catch (Exception $e) { 32 | Mage::logException($e); 33 | } 34 | 35 | $installer->endSetup(); -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/sql/smile_elasticsearch_setup/upgrade-1.1.0-1.1.1.php: -------------------------------------------------------------------------------- 1 | previous module 11 | * available at https://github.com/jreinke/magento-elasticsearch 12 | * 13 | * @category Smile 14 | * @package Smile_ElasticSearch 15 | * @author Aurelien FOUCRET 16 | * @copyright 2013 Smile 17 | * @license Apache License Version 2.0 18 | */ 19 | 20 | /** 21 | * @var Mage_Catalog_Model_Resource_Setup 22 | */ 23 | 24 | $installer = $this; 25 | $installer->startSetup(); 26 | 27 | $installer->updateAttribute(Mage_Catalog_Model_Category::ENTITY, 'is_anchor', 'frontend_input', 'hidden'); 28 | $installer->updateAttribute(Mage_Catalog_Model_Category::ENTITY, 'is_anchor', 'default_value', 1); 29 | 30 | $installer->endSetup(); 31 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/sql/smile_elasticsearch_setup/upgrade-1.1.2-1.1.3.php: -------------------------------------------------------------------------------- 1 | 15 | * @copyright 2013 Smile 16 | * @license Apache License Version 2.0 17 | */ 18 | 19 | /** 20 | * @var Mage_Catalog_Model_Resource_Setup 21 | */ 22 | $installer = $this; 23 | $installer->startSetup(); 24 | 25 | try { 26 | // Append a column 'is_used_in_autocomplete' into the db 27 | $connection = $installer->getConnection(); 28 | $table = $installer->getTable('catalog/eav_attribute'); 29 | $connection->addColumn($table, 'facet_min_coverage_rate', "tinyint(1) unsigned NOT NULL DEFAULT '90'"); 30 | 31 | } catch (Exception $e) { 32 | Mage::logException($e); 33 | } 34 | 35 | $installer->endSetup(); 36 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/sql/smile_elasticsearch_setup/upgrade-1.1.3-1.1.4.php: -------------------------------------------------------------------------------- 1 | 15 | * @copyright 2015 Smile 16 | * @license Apache License Version 2.0 17 | */ 18 | 19 | /** 20 | * @var Mage_Catalog_Model_Resource_Setup 21 | */ 22 | $installer = $this; 23 | $installer->startSetup(); 24 | 25 | try { 26 | // Append a column 'facets_max_size' into the db 27 | $connection = $installer->getConnection(); 28 | $table = $installer->getTable('catalog/eav_attribute'); 29 | $connection->addColumn($table, 'facets_max_size', "int unsigned NOT NULL DEFAULT '1000'"); 30 | 31 | } catch (Exception $e) { 32 | Mage::logException($e); 33 | } 34 | 35 | $installer->endSetup(); 36 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/sql/smile_elasticsearch_setup/upgrade-1.1.4-1.1.5.php: -------------------------------------------------------------------------------- 1 | 17 | * @copyright 2015 Smile 18 | * @license Apache License Version 2.0 19 | */ 20 | 21 | /** 22 | * @var Mage_Catalog_Model_Resource_Setup 23 | */ 24 | $installer = $this; 25 | $installer->startSetup(); 26 | 27 | try { 28 | // Append a column 'facets_sort_order' into the db 29 | $connection = $installer->getConnection(); 30 | $table = $installer->getTable('catalog/eav_attribute'); 31 | $connection->addColumn($table, 'facets_sort_order', "varchar(25) NOT NULL DEFAULT 'count'"); 32 | 33 | } catch (Exception $e) { 34 | Mage::logException($e); 35 | } 36 | 37 | $installer->endSetup(); 38 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/ElasticSearch/sql/smile_elasticsearch_setup/upgrade-1.1.6-1.1.7.php: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */ 16 | 17 | /** 18 | * @var Mage_Catalog_Model_Resource_Setup 19 | */ 20 | $installer = $this; 21 | $installer->startSetup(); 22 | 23 | try { 24 | // Append a column 'is_used_in_autocomplete' into the db 25 | $connection = $installer->getConnection(); 26 | $table = $installer->getTable('catalog/eav_attribute'); 27 | $connection->addColumn($table, 'is_displayed_in_autocomplete', "tinyint(1) unsigned NOT NULL DEFAULT '0'"); 28 | } catch (Exception $e) { 29 | Mage::logException($e); 30 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/SearchandisingSuite/Helper/Data.php: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */ 16 | class Smile_SearchandisingSuite_Helper_Data extends Mage_Core_Helper_Abstract 17 | { 18 | /** 19 | * @var string Config path for site id. 20 | */ 21 | const CONFIG_SITE_ID_XPATH = 'smile_searchandisingsuite_general/website/site_id'; 22 | 23 | /** 24 | * Retrieve site id from the configuration. 25 | * 26 | * @return string 27 | */ 28 | public function getSiteId() 29 | { 30 | return (string) Mage::getStoreConfig(self::CONFIG_SITE_ID_XPATH); 31 | } 32 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/SearchandisingSuite/etc/adminhtml.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | Smile Searchandising General Section 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/Tracker/Block/Variables/Abstract.php: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */ 16 | class Smile_Tracker_Block_Variables_Abstract extends Mage_Core_Block_Template 17 | { 18 | /** 19 | * Indicate if the block is enabled or not 20 | * 21 | * @return Mage_Core_Block_Abstract Self reference 22 | */ 23 | public function isEnabled() 24 | { 25 | $mainBlock = $this->getLayout()->getBlock('smile.tracker.config'); 26 | 27 | return !is_null($mainBlock) && $mainBlock->isEnabled(); 28 | } 29 | 30 | /** 31 | * Display the block only if main block is present and enabled 32 | * 33 | * @return string Block rendering 34 | */ 35 | protected function _toHtml() 36 | { 37 | $html = ''; 38 | if ($this->isEnabled()) { 39 | $html = parent::_toHtml(); 40 | } 41 | return $html; 42 | } 43 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/Tracker/Block/Variables/Page/Abstract.php: -------------------------------------------------------------------------------- 1 | 14 | * @copyright 2013 Smile 15 | * @license Apache License Version 2.0 16 | */ 17 | class Smile_Tracker_Block_Variables_Page_Abstract extends Smile_Tracker_Block_Variables_Abstract 18 | { 19 | /** 20 | * Set the default template for page variable blocks 21 | * 22 | * @return void Nothing 23 | */ 24 | // @codingStandardsIgnoreStart 25 | public function _construct() 26 | { 27 | $this->setTemplate('smile/tracker/variables/page.phtml'); 28 | } 29 | // @codingStandardsIgnoreEnd 30 | 31 | /** 32 | * List of the variables added to the tracker 33 | * Array keys are variable name 34 | * 35 | * @return array 36 | */ 37 | public function getVariables() 38 | { 39 | $variables = array(); 40 | return array(); 41 | } 42 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/Tracker/Block/Variables/Page/Cms.php: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */ 16 | class Smile_Tracker_Block_Variables_Page_Cms extends Smile_Tracker_Block_Variables_Page_Abstract 17 | { 18 | /** 19 | * Append the CMS page viewed identifier and title to the list of tracked variables 20 | * 21 | * @return array 22 | */ 23 | public function getVariables() 24 | { 25 | $currentPage = Mage::getSingleton('cms/page'); 26 | 27 | return array( 28 | 'cms.identifier' => $currentPage->getIdentifier(), 29 | 'cms.title' => $currentPage->getTitle() 30 | ); 31 | } 32 | 33 | 34 | 35 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/Tracker/Block/Variables/Page/Search.php: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */ 16 | class Smile_Tracker_Block_Variables_Page_Search extends Smile_Tracker_Block_Variables_Page_Abstract 17 | { 18 | /** 19 | * Append the user fulltext query to the tracked variables list 20 | * 21 | * @return array 22 | */ 23 | public function getVariables() 24 | { 25 | $variables = array( 26 | 'search.query' => Mage::helper('catalogsearch')->getEscapedQueryText() 27 | ); 28 | 29 | if ($layer = Mage::registry('current_layer')) { 30 | $productCollection = $layer->getProductCollection(); 31 | $variables['search.is_spellchecked'] = (bool) $productCollection->isSpellchecked(); 32 | } 33 | return $variables; 34 | } 35 | } -------------------------------------------------------------------------------- /src/app/code/community/Smile/Tracker/etc/adminhtml.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | Smile Tracker Section 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/VirtualCategories/Block/Adminhtml/Catalog/Category/Tab/Preview/Renderer/Position.php: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2015 Smile 14 | * @license Apache License Version 2.0 15 | */ 16 | class Smile_VirtualCategories_Block_Adminhtml_Catalog_Category_Tab_Preview_Renderer_Position 17 | extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract 18 | { 19 | /** 20 | * Renders grid column 21 | * 22 | * @param Varien_Object $row The current row 23 | * 24 | * @return string 25 | */ 26 | public function render(Varien_Object $row) 27 | { 28 | $name = $this->getColumn()->getId() . "[" . $row->getId() . "]"; 29 | $value = $row->getData($this->getColumn()->getIndex()); 30 | $inlineCss = $this->getColumn()->getInlineCss(); 31 | 32 | $html = << 34 | HTML; 35 | 36 | return $html; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/app/code/community/Smile/VirtualCategories/Helper/Index.php: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2015 Smile 14 | * @license Apache License Version 2.0 15 | */ 16 | class Smile_VirtualCategories_Helper_Index extends Enterprise_Index_Helper_Data 17 | { 18 | /** 19 | * Path to price indexer mode 20 | */ 21 | const XML_PATH_LIVE_VIRTUAL_CATEGORIES_PRODUCT_POSITION_REINDEX_ENABLED 22 | = 'index_management/index_options/virtual_categories_products_position'; 23 | 24 | /** 25 | * Retrieve products positions in search index mode 26 | * 27 | * @return boolean 28 | */ 29 | public function isLiveProductPositionInVirtualCategoriesReindexEnabled() 30 | { 31 | return Mage::getStoreConfigFlag(self::XML_PATH_LIVE_VIRTUAL_CATEGORIES_PRODUCT_POSITION_REINDEX_ENABLED); 32 | } 33 | } -------------------------------------------------------------------------------- /src/app/design/adminhtml/default/default/layout/smile/virtualcategories.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 1 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/app/design/adminhtml/default/default/template/smile/virtualcategories/category/rule_fieldset.phtml: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */?> 16 | getElement() ?> 17 |
18 |
19 |

getLegend() ?>

20 |
21 |
serialize(array('class')) ?>> 22 | getComment()): ?> 23 |

escapeHtml($_element->getComment()) ?>

24 | 25 | getChildrenHtml() ?> 26 |
27 |
28 | 34 | -------------------------------------------------------------------------------- /src/app/design/frontend/base/default/template/smile/elasticsearch/autocomplete/autocomplete.phtml: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */?> 16 |
17 | getChildHtml('complete_list'); ?> 18 |
-------------------------------------------------------------------------------- /src/app/design/frontend/base/default/template/smile/elasticsearch/autocomplete/suggest/category.phtml: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */ 16 | ?> 17 | 18 | isActive()) : ?> 19 | getCategoryCollection()->getItems(); ?> 20 | 0) : ?> 21 |
__('Categories'); ?>
22 | 23 |
getName(); ?>
24 | 25 | 26 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */ 16 | ?> 17 | 18 | isActive()) : ?> 19 | getSuggestions(); ?> 20 | 0) : ?> 21 |
getTitle(); ?>
22 | 23 |
24 | 25 | getLabel(); ?> 26 | displayTypes()) :?> 27 | getAttribute()->getFrontendLabel();?> 28 | 29 | 30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /src/app/design/frontend/base/default/template/smile/elasticsearch/autocomplete/suggest/terms.phtml: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */?> 16 | getSuggestData(); ?> 17 | 18 | 0): ?> 19 |
__('Popular searches')?>
20 | 21 | escapeHtml($suggestion['title']); ?> 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /src/app/design/frontend/base/default/template/smile/elasticsearch/catalog/layer/filter/rating.phtml: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */?> 16 |
    17 | getItems() as $_item): ?> 18 |
  1. 19 | getCount() > 0): ?> 20 | 21 |
    22 |
    23 |
    24 | getLabel() < 100) : ?> 25 | __('and more')?> 26 | 27 |
    28 | getLabel() ?> 29 | 30 | shouldDisplayProductCount()): ?> 31 | (getCount() ?>) 32 | 33 |
  2. 34 | 35 |
36 | -------------------------------------------------------------------------------- /src/app/design/frontend/base/default/template/smile/tracker/config.phtml: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */?> 16 | 17 | isEnabled()) : ?> 18 | 31 | -------------------------------------------------------------------------------- /src/app/design/frontend/base/default/template/smile/tracker/variables/page.phtml: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */?> 16 | getVariables(); ?> 17 | 18 | 19 | 26 | 27 | -------------------------------------------------------------------------------- /src/app/design/frontend/base/default/template/smile/tracker/variables/session.phtml: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */?> 16 | getVariables(); ?> 17 | 18 | 19 | 26 | 27 | -------------------------------------------------------------------------------- /src/app/design/frontend/rwd/default/template/smile/elasticsearch/catalog/layer/filter/rating.phtml: -------------------------------------------------------------------------------- 1 | 13 | * @copyright 2013 Smile 14 | * @license Apache License Version 2.0 15 | */?> 16 |
    17 | getItems() as $_item): ?> 18 |
  1. 19 | getCount() > 0): ?> 20 | 21 |
    22 |
    23 |
    24 | getLabel() < 100) : ?> 25 | __('and up')?> 26 | 27 | shouldDisplayProductCount()): ?> 28 | (getCount() ?>) 29 | 30 |
    31 | getLabel() ?> 32 | 33 |
  2. 34 | 35 |
36 | -------------------------------------------------------------------------------- /src/app/locale/en_US/Smile_SearchandisingSuite.csv: -------------------------------------------------------------------------------- 1 | "Smile Searchandising General Section","Smile Searchandising General Section" 2 | "Smile Searchandasing Suite","Smile Searchandasing Suite" 3 | "General","General" 4 | "Site configuration","Site configuration" 5 | "Site Id","Site Id" 6 | -------------------------------------------------------------------------------- /src/app/locale/en_US/Smile_Tracker.csv: -------------------------------------------------------------------------------- 1 | "Smile Tracker Section","Smile Tracker Section" 2 | "Tracking","Tracking" 3 | "Global Configuration","Global Configuration" 4 | "Tracking base URL","Tracking base URL" 5 | "Session","Session" 6 | "Visit cookie name","Visit cookie name" 7 | "Visit cookie lifetime","Visit cookie lifetime" 8 | "Visitor cookie name","Visitor cookie name" 9 | "Visitor cookie lifetime","Visitor cookie lifetime" 10 | "In seconds (default is 3600 sec.).
Without any activity under this delay we start a new visit.","In seconds (default is 3600 sec.).
Without any activity under this delay we start a new visit." 11 | "In day (default is 365 days).
This cookie will be stick to the customer to allow multiple session aggregation.","In day (default is 365 sec.).
This cookie will be stick to the customer to allow multiple session aggregation." 12 | "Enabled","Enabled" -------------------------------------------------------------------------------- /src/app/locale/en_US/Smile_VirtualCategories.csv: -------------------------------------------------------------------------------- 1 | "Category type","Category type" 2 | "Enable virtual category","Enable virtual category" 3 | "Yes","Yes" 4 | "No","No" 5 | "Virtual condition","Virtual condition" 6 | "Product selection","Product selection" 7 | "Only in stock products","Only in stock products" 8 | "Only products with images","Only products with images" 9 | "Only discounted products","Only discounted products" 10 | "Only new products","Only new products" -------------------------------------------------------------------------------- /src/app/locale/fr_FR/Smile_SearchandisingSuite.csv: -------------------------------------------------------------------------------- 1 | "Smile Searchandising General Section","Section générale de Smile Searchandasing Suite" 2 | "Smile Searchandasing Suite","Smile Searchandasing Suite" 3 | "General","Général" 4 | "Site configuration","Configuration du site" 5 | "Site Id","Id du site" 6 | -------------------------------------------------------------------------------- /src/app/locale/fr_FR/Smile_Tracker.csv: -------------------------------------------------------------------------------- 1 | "Smile Tracker Section","Section tracking de Smile Searchandising Suite" 2 | "Tracking","Tracking" 3 | "Global Configuration","Configuation générale" 4 | "Tracking base URL","URL de base du tracking" 5 | "Session","Session" 6 | "Visit cookie name","Nom du cookie de visite" 7 | "Visit cookie lifetime","Durée de vie du cookie de visite" 8 | "Visitor cookie name","Nom du cookie visiteur" 9 | "Visitor cookie lifetime","Durée de vie du cookie visiteur" 10 | "In seconds (default is 3600 sec.).
Without any activity under this delay we start a new visit.","En secondes (Valeur par défaut 3600 s.).
Sans activité durant ce délai une nouvelle visite est prise en compte." 11 | "In day (default is 365 days).
This cookie will be stick to the customer to allow multiple session aggregation.","En jours (Valeur par défaut 365 jours.).
Ce cookie permet de consolider les multiples visites d'une même personne." 12 | "Enabled","Activer" -------------------------------------------------------------------------------- /src/app/locale/fr_FR/Smile_VirtualCategories.csv: -------------------------------------------------------------------------------- 1 | "Category type","Type de catégorie" 2 | "Enable virtual category","Activer la catégorie virtuelle" 3 | "Yes","Oui" 4 | "No","Non" 5 | "Virtual condition","Condition de la catégorie virtuelle" 6 | "Product selection","Sélection de produits" 7 | "Only in stock products","Seulement les produits en stock" 8 | "Only products with images","Seulement les produits avec image" 9 | "Only discounted products","Seulement les produits en promotion" 10 | "Only new products","Seulement les nouveaux produits" 11 | "Custom products positions in Virtual Categories","Positions des produits dans les catégories virtuelles" 12 | "Computes custom positions for products in virtual categories.","Indexe les positions des produits dans les catégories virtuelles." 13 | "Virtual Categories products positions Index","Index des positions des produits dans les catégories virtuelles" -------------------------------------------------------------------------------- /src/js/smile/tracker/hit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/src/js/smile/tracker/hit.png -------------------------------------------------------------------------------- /src/lib/.gitignore: -------------------------------------------------------------------------------- 1 | /composer.lock 2 | -------------------------------------------------------------------------------- /src/lib/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "elasticsearch/elasticsearch": "~1.2.2" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/lib/vendor/autoload.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/symfony/event-dispatcher'), 10 | 'Psr\\Log\\' => array($vendorDir . '/psr/log'), 11 | 'Pimple' => array($vendorDir . '/pimple/pimple/src'), 12 | 'Guzzle\\Stream' => array($vendorDir . '/guzzle/stream'), 13 | 'Guzzle\\Parser' => array($vendorDir . '/guzzle/parser'), 14 | 'Guzzle\\Http' => array($vendorDir . '/guzzle/http'), 15 | 'Guzzle\\Common' => array($vendorDir . '/guzzle/common'), 16 | 'Elasticsearch\\Tests' => array($vendorDir . '/elasticsearch/elasticsearch/tests'), 17 | 'Elasticsearch\\Benchmarks' => array($vendorDir . '/elasticsearch/elasticsearch/benchmarks'), 18 | 'Elasticsearch' => array($vendorDir . '/elasticsearch/elasticsearch/src'), 19 | ); 20 | -------------------------------------------------------------------------------- /src/lib/vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/monolog/monolog/src/Monolog'), 10 | ); 11 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/.gitignore: -------------------------------------------------------------------------------- 1 | #composer related 2 | composer.lock 3 | vendor/ 4 | composer.phar 5 | 6 | #editor related 7 | .idea 8 | 9 | # OS generated files 10 | .DS_Store 11 | .DS_Store? 12 | ._* 13 | .Spotlight-V100 14 | .Trashes 15 | Icon? 16 | ehthumbs.db 17 | Thumbs.db 18 | 19 | #generator related 20 | generator/* -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "util/elasticsearch"] 2 | path = util/elasticsearch 3 | url = https://github.com/elasticsearch/elasticsearch.git 4 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | php: 3 | - "5.5" 4 | - "5.4" 5 | - "5.3" 6 | env: 7 | - ES_VERSION=0.90.0 ES_TEST_HOST=http://localhost:9200 8 | - ES_VERSION=0.90.1 ES_TEST_HOST=http://localhost:9200 9 | - ES_VERSION=0.90.2 ES_TEST_HOST=http://localhost:9200 10 | - ES_VERSION=0.90.3 ES_TEST_HOST=http://localhost:9200 11 | - ES_VERSION=0.90.4 ES_TEST_HOST=http://localhost:9200 12 | - ES_VERSION=0.90.5 ES_TEST_HOST=http://localhost:9200 13 | 14 | before_script: 15 | - composer install --dev 16 | - mkdir -p build/logs 17 | 18 | script: ./run_travis_test.sh 19 | 20 | after_script: 21 | - php vendor/bin/coveralls -v -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2013 Elasticsearch 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "elasticsearch/elasticsearch", 3 | "description": "PHP Client for Elasticsearch", 4 | "keywords": ["search","client", "elasticsearch"], 5 | "type": "library", 6 | "license": "Apache 2", 7 | "authors": [ 8 | { 9 | "name": "Zachary Tong" 10 | } 11 | ], 12 | "require": { 13 | "php": ">=5.3.9", 14 | "monolog/monolog": "~1.5", 15 | "pimple/pimple": "~2.1", 16 | "guzzle/http": "~3.7", 17 | "psr/log": "~1.0", 18 | "ext-curl": "*" 19 | }, 20 | "require-dev": { 21 | "phpunit/phpunit": "3.7.*", 22 | "mockery/mockery": "dev-master@dev", 23 | "athletic/athletic": "~0.1", 24 | "symfony/yaml": "2.4.3 as 2.4.2", 25 | "satooshi/php-coveralls": "dev-master", 26 | "mikey179/vfsStream": "~1.2", 27 | "twig/twig": "1.*", 28 | "cpliakas/git-wrapper": "~1.0" 29 | }, 30 | "autoload": { 31 | "psr-0": { 32 | "Elasticsearch": "src/", 33 | "Elasticsearch\\Tests" : "tests/", 34 | "Elasticsearch\\Benchmarks" : "benchmarks/" 35 | } 36 | }, 37 | "repositories": [ 38 | { 39 | "type": "vcs", 40 | "url": "https://github.com/polyfractal/Yaml" 41 | } 42 | ] 43 | } 44 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/docs/index.asciidoc: -------------------------------------------------------------------------------- 1 | 2 | = Elasticsearch-PHP 3 | 4 | include::overview.asciidoc[] 5 | 6 | include::quickstart.asciidoc[] 7 | 8 | include::installation.asciidoc[] 9 | 10 | include::configuration.asciidoc[] 11 | 12 | include::php_json_objects.asciidoc[] 13 | 14 | include::index-operations.asciidoc[] 15 | 16 | include::indexing-operations.asciidoc[] 17 | 18 | include::search-operations.asciidoc[] 19 | 20 | include::namespaces.asciidoc[] 21 | 22 | include::connection-pool.asciidoc[] 23 | 24 | include::serializers.asciidoc[] 25 | 26 | include::php-version-requirement.asciidoc[] -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/docs/overview.asciidoc: -------------------------------------------------------------------------------- 1 | == Overview 2 | 3 | This is the official PHP client for Elasticsearch. It is designed to be a very low-level client that does not stray from the REST API. 4 | 5 | All methods closely match the REST API, and furthermore, match the method structure of other language clients (ruby, python, etc). We hope that this consistency makes it easy to get started with a client, and to seamlessly switch from one language to the next with minimal effort. 6 | 7 | The client is designed to be "unopinionated". There are a few universal niceties added to the client (cluster state sniffing, round-robin requests, etc) but largely it is very barebones. This was intentional. We want a common base that more sophisticated libraries can build on top of. 8 | 9 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/run_travis_test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [ -z $ES_VERSION ]; then 4 | echo "No ES_VERSION specified"; 5 | exit 1; 6 | fi; 7 | 8 | ES_DIR="elasticsearch-$ES_VERSION" 9 | 10 | killall java 2>/dev/null 11 | 12 | if [ ! -d $ES_DIR ]; then 13 | echo "Downloading Elasticsearch v${ES_VERSION}" 14 | ES_URL="https://download.elasticsearch.org/elasticsearch/elasticsearch/${ES_DIR}.zip" 15 | curl -O $ES_URL 16 | unzip "${ES_DIR}.zip" 17 | fi; 18 | 19 | echo "Starting Elasticsearch v${ES_VERSION}" 20 | ./${ES_DIR}/bin/elasticsearch \ 21 | -Des.network.host=localhost \ 22 | -Des.discovery.zen.ping.multicast.enabled=false \ 23 | -Des.discovery.zen.ping_timeout=1 24 | 25 | sleep 3 26 | 27 | phpunit --bootstrap tests/bootstrap.php --no-configuration --coverage-clover build/logs/clover.xml --exclude-group ignore tests -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/AbstractFactory.php: -------------------------------------------------------------------------------- 1 | container = $container; 24 | } 25 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/EmptyLogger.php: -------------------------------------------------------------------------------- 1 | 16 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 17 | * @link http://elasticsearch.org 18 | */ 19 | class AlreadyExpiredException extends \Exception implements ElasticsearchException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/BadMethodCallException.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 11 | * @link http://elasticsearch.org 12 | */ 13 | namespace Elasticsearch\Common\Exceptions; 14 | 15 | /** 16 | * BadMethodCallException 17 | * Denote problems with a method call (e.g. incorrect number of arguments) 18 | */ 19 | class BadMethodCallException extends \BadMethodCallException implements ElasticsearchException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/BadRequest400Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elasticsearch.org 13 | */ 14 | class BadRequest400Exception extends \Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/ClientErrorResponseException.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 11 | * @link http://elasticsearch.org 12 | */ 13 | namespace Elasticsearch\Common\Exceptions; 14 | 15 | /** 16 | * Class ClientErrorResponseException 17 | * @package Elasticsearch\Common\Exceptions 18 | */ 19 | class ClientErrorResponseException extends TransportException implements ElasticsearchException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Conflict409Exception.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 12 | * @link http://elasticsearch.org 13 | */ 14 | class Conflict409Exception extends \Exception implements ElasticsearchException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Curl/CouldNotConnectToHost.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 11 | * @link http://elasticsearch.org 12 | */ 13 | 14 | namespace Elasticsearch\Common\Exceptions; 15 | 16 | /** 17 | * Generic Exception interface 18 | * 19 | * @category Elasticsearch 20 | * @package Elasticsearch\Common\Exceptions 21 | * @author Zachary Tong 22 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 23 | * @link http://elasticsearch.org 24 | */ 25 | interface ElasticsearchException 26 | { 27 | } 28 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Forbidden403Exception.php: -------------------------------------------------------------------------------- 1 | 16 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 17 | * @link http://elasticsearch.org 18 | */ 19 | class Forbidden403Exception extends \Exception implements ElasticsearchException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 11 | * @link http://elasticsearch.org 12 | */ 13 | namespace Elasticsearch\Common\Exceptions; 14 | 15 | /** 16 | * InvalidArgumentException 17 | * Denote invalid or incorrect argument values 18 | */ 19 | class InvalidArgumentException extends \InvalidArgumentException implements ElasticsearchException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/MaxRetriesException.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 11 | * @link http://elasticsearch.org 12 | */ 13 | namespace Elasticsearch\Common\Exceptions; 14 | 15 | /** 16 | * BadMethodCallException 17 | * Denote problems with a method call (e.g. incorrect number of arguments) 18 | */ 19 | class MaxRetriesException extends \Exception implements ElasticsearchException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/Missing404Exception.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 11 | * @link http://elasticsearch.org 12 | */ 13 | 14 | namespace Elasticsearch\Common\Exceptions; 15 | 16 | /** 17 | * Generic Exception interface 18 | * 19 | * @category Elasticsearch 20 | * @package Elasticsearch\Common\Exceptions 21 | * @author Zachary Tong 22 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 23 | * @link http://elasticsearch.org 24 | */ 25 | class Missing404Exception extends \Exception implements ElasticsearchException 26 | { 27 | } 28 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/NoDocumentsToGetException.php: -------------------------------------------------------------------------------- 1 | 17 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 18 | * @link http://elasticsearch.org 19 | */ 20 | class NoDocumentsToGetException extends ServerErrorResponseException implements ElasticsearchException 21 | { 22 | } 23 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/NoNodesAvailableException.php: -------------------------------------------------------------------------------- 1 | 9 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 10 | * @link http://elasticsearch.org 11 | */ 12 | namespace Elasticsearch\Common\Exceptions; 13 | 14 | /** 15 | * NoNodesAvailableException 16 | */ 17 | class NoNodesAvailableException extends \Exception implements ElasticsearchException 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/NoShardAvailableException.php: -------------------------------------------------------------------------------- 1 | 16 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 17 | * @link http://elasticsearch.org 18 | */ 19 | class NoShardAvailableException extends ServerErrorResponseException implements ElasticsearchException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/RoutingMissingException.php: -------------------------------------------------------------------------------- 1 | 17 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 18 | * @link http://elasticsearch.org 19 | */ 20 | class RoutingMissingException extends ServerErrorResponseException implements ElasticsearchException 21 | { 22 | } 23 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/RuntimeException.php: -------------------------------------------------------------------------------- 1 | 12 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 13 | * @link http://elasticsearch.org 14 | */ 15 | namespace Elasticsearch\Common\Exceptions; 16 | 17 | /** 18 | * RuntimeException 19 | */ 20 | class RuntimeException extends \RuntimeException implements ElasticsearchException 21 | { 22 | } 23 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/ScriptLangNotSupportedException.php: -------------------------------------------------------------------------------- 1 | 17 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 18 | * @link http://elasticsearch.org 19 | */ 20 | class ScriptLangNotSupportedException extends BadRequest400Exception implements ElasticsearchException 21 | { 22 | } 23 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/ServerErrorResponseException.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 11 | * @link http://elasticsearch.org 12 | */ 13 | namespace Elasticsearch\Common\Exceptions; 14 | 15 | /** 16 | * ServerErrorResponseException 17 | */ 18 | class ServerErrorResponseException extends TransportException implements ElasticsearchException 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/TransportException.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 11 | * @link http://elasticsearch.org 12 | */ 13 | namespace Elasticsearch\Common\Exceptions; 14 | 15 | /** 16 | * BadMethodCallException 17 | * Denote problems with a method call (e.g. incorrect number of arguments) 18 | */ 19 | class TransportException extends \Exception implements ElasticsearchException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Common/Exceptions/UnexpectedValueException.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 11 | * @link http://elasticsearch.org 12 | */ 13 | namespace Elasticsearch\Common\Exceptions; 14 | 15 | /** 16 | * UnexpectedValueException 17 | * Denote a value that is outside the normally accepted values 18 | */ 19 | class UnexpectedValueException extends \UnexpectedValueException implements ElasticsearchException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/Selectors/RandomSelector.php: -------------------------------------------------------------------------------- 1 | 18 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 19 | * @link http://elasticsearch.org 20 | */ 21 | class RandomSelector implements SelectorInterface 22 | { 23 | 24 | 25 | /** 26 | * Select a random connection from the provided array 27 | * 28 | * @param array $connections Array of Connection objects 29 | * 30 | * @return ConnectionInterface 31 | */ 32 | public function select($connections) 33 | { 34 | return $connections[array_rand($connections)]; 35 | 36 | } 37 | 38 | 39 | }//end class -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/Selectors/RoundRobinSelector.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | class RoundRobinSelector implements SelectorInterface 23 | { 24 | 25 | /** 26 | * @var int 27 | */ 28 | private $current = 0; 29 | 30 | 31 | /** 32 | * Select the next connectioion in the sequence 33 | * 34 | * @param array $connections Array of connections to choose from 35 | * 36 | * @return ConnectionInterface 37 | */ 38 | public function select($connections) 39 | { 40 | $this->current += 1; 41 | 42 | return $connections[$this->current % count($connections)]; 43 | 44 | } 45 | 46 | 47 | }//end class -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/Selectors/SelectorInterface.php: -------------------------------------------------------------------------------- 1 | container['connection']( 22 | $hostDetails, 23 | $this->container['connectionParamsShared'], 24 | $this->container['logObject'], 25 | $this->container['traceObject'] 26 | ); 27 | } 28 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/ConnectionInterface.php: -------------------------------------------------------------------------------- 1 | 18 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 19 | * @link http://elasticsearch.org 20 | */ 21 | interface ConnectionInterface 22 | { 23 | public function __construct($hostDetails, $connectionParams, LoggerInterface $log, LoggerInterface $trace); 24 | 25 | public function getTransportSchema(); 26 | 27 | public function isAlive(); 28 | 29 | public function markAlive(); 30 | 31 | public function markDead(); 32 | 33 | public function getLastRequestInfo(); 34 | 35 | public function performRequest($method, $uri, $params = null, $body = null); 36 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/BulkEndpointInterface.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Count extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $index = $this->index; 31 | $uri = "/_cat/count"; 32 | 33 | if (isset($index) === true) { 34 | $uri = "/_cat/count/$index"; 35 | } 36 | 37 | return $uri; 38 | } 39 | 40 | 41 | /** 42 | * @return string[] 43 | */ 44 | protected function getParamWhitelist() 45 | { 46 | return array( 47 | 'local', 48 | 'master_timeout', 49 | 'h', 50 | 'help', 51 | 'v', 52 | ); 53 | } 54 | 55 | 56 | /** 57 | * @return string 58 | */ 59 | protected function getMethod() 60 | { 61 | return 'GET'; 62 | } 63 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Health.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Health extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $uri = "/_cat/health"; 31 | 32 | 33 | return $uri; 34 | } 35 | 36 | 37 | /** 38 | * @return string[] 39 | */ 40 | protected function getParamWhitelist() 41 | { 42 | return array( 43 | 'local', 44 | 'master_timeout', 45 | 'h', 46 | 'help', 47 | 'ts', 48 | 'v', 49 | ); 50 | } 51 | 52 | 53 | /** 54 | * @return string 55 | */ 56 | protected function getMethod() 57 | { 58 | return 'GET'; 59 | } 60 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Help.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Help extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $uri = "/_cat"; 31 | 32 | 33 | return $uri; 34 | } 35 | 36 | 37 | /** 38 | * @return string[] 39 | */ 40 | protected function getParamWhitelist() 41 | { 42 | return array( 43 | 'help', 44 | ); 45 | } 46 | 47 | 48 | /** 49 | * @return string 50 | */ 51 | protected function getMethod() 52 | { 53 | return 'GET'; 54 | } 55 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Master.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Master extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $uri = "/_cat/master"; 31 | 32 | 33 | return $uri; 34 | } 35 | 36 | 37 | /** 38 | * @return string[] 39 | */ 40 | protected function getParamWhitelist() 41 | { 42 | return array( 43 | 'local', 44 | 'master_timeout', 45 | 'h', 46 | 'help', 47 | 'v', 48 | ); 49 | } 50 | 51 | 52 | /** 53 | * @return string 54 | */ 55 | protected function getMethod() 56 | { 57 | return 'GET'; 58 | } 59 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Nodes.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Nodes extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $uri = "/_cat/nodes"; 31 | 32 | 33 | return $uri; 34 | } 35 | 36 | 37 | /** 38 | * @return string[] 39 | */ 40 | protected function getParamWhitelist() 41 | { 42 | return array( 43 | 'local', 44 | 'master_timeout', 45 | 'h', 46 | 'help', 47 | 'v', 48 | ); 49 | } 50 | 51 | 52 | /** 53 | * @return string 54 | */ 55 | protected function getMethod() 56 | { 57 | return 'GET'; 58 | } 59 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/PendingTasks.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class PendingTasks extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $uri = "/_cat/pending_tasks"; 31 | 32 | 33 | return $uri; 34 | } 35 | 36 | 37 | /** 38 | * @return string[] 39 | */ 40 | protected function getParamWhitelist() 41 | { 42 | return array( 43 | 'local', 44 | 'master_timeout', 45 | 'h', 46 | 'help', 47 | 'v', 48 | ); 49 | } 50 | 51 | 52 | /** 53 | * @return string 54 | */ 55 | protected function getMethod() 56 | { 57 | return 'GET'; 58 | } 59 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/Shards.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Shards extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $index = $this->index; 31 | $uri = "/_cat/shards"; 32 | 33 | if (isset($index) === true) { 34 | $uri = "/_cat/shards/$index"; 35 | } 36 | 37 | return $uri; 38 | } 39 | 40 | 41 | /** 42 | * @return string[] 43 | */ 44 | protected function getParamWhitelist() 45 | { 46 | return array( 47 | 'local', 48 | 'master_timeout', 49 | 'h', 50 | 'help', 51 | 'v', 52 | ); 53 | } 54 | 55 | 56 | /** 57 | * @return string 58 | */ 59 | protected function getMethod() 60 | { 61 | return 'GET'; 62 | } 63 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cat/ThreadPool.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class ThreadPool extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $uri = "/_cat/thread_pool"; 31 | 32 | return $uri; 33 | } 34 | 35 | 36 | /** 37 | * @return string[] 38 | */ 39 | protected function getParamWhitelist() 40 | { 41 | return array( 42 | 'local', 43 | 'master_timeout', 44 | 'h', 45 | 'help', 46 | 'v', 47 | 'full_id', 48 | ); 49 | } 50 | 51 | 52 | /** 53 | * @return string 54 | */ 55 | protected function getMethod() 56 | { 57 | return 'GET'; 58 | } 59 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/Nodes/AbstractNodesEndpoint.php: -------------------------------------------------------------------------------- 1 | nodeID = $nodeID; 42 | return $this; 43 | } 44 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/Nodes/Shutdown.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Shutdown extends AbstractNodesEndpoint 24 | { 25 | 26 | /** 27 | * @return string 28 | */ 29 | protected function getURI() 30 | { 31 | $node_id = $this->nodeID; 32 | $uri = "/_shutdown"; 33 | 34 | if (isset($node_id) === true) { 35 | $uri = "/_cluster/nodes/$node_id/_shutdown"; 36 | } 37 | 38 | return $uri; 39 | } 40 | 41 | 42 | /** 43 | * @return string[] 44 | */ 45 | protected function getParamWhitelist() 46 | { 47 | return array( 48 | 'delay', 49 | 'exit', 50 | ); 51 | } 52 | 53 | 54 | /** 55 | * @return string 56 | */ 57 | protected function getMethod() 58 | { 59 | return 'POST'; 60 | } 61 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/PendingTasks.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class PendingTasks extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $uri = "/_cluster/pending_tasks"; 31 | 32 | return $uri; 33 | } 34 | 35 | 36 | /** 37 | * @return string[] 38 | */ 39 | protected function getParamWhitelist() 40 | { 41 | return array( 42 | 'local', 43 | 'master_timeout', 44 | ); 45 | } 46 | 47 | 48 | /** 49 | * @return string 50 | */ 51 | protected function getMethod() 52 | { 53 | return 'GET'; 54 | } 55 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Cluster/Settings/Get.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Get extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $uri = "/_cluster/settings"; 31 | 32 | 33 | return $uri; 34 | } 35 | 36 | 37 | /** 38 | * @return string[] 39 | */ 40 | protected function getParamWhitelist() 41 | { 42 | return array( 43 | 'flat_settings', 44 | 'master_timeout', 45 | 'timeout', 46 | ); 47 | } 48 | 49 | 50 | /** 51 | * @return string 52 | */ 53 | protected function getMethod() 54 | { 55 | return 'GET'; 56 | } 57 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Alias/AbstractAliasEndpoint.php: -------------------------------------------------------------------------------- 1 | name = urlencode($name); 39 | return $this; 40 | } 41 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Delete.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Delete extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $index = $this->index; 31 | $uri = "/$index"; 32 | 33 | if (isset($index) === true) { 34 | $uri = "/$index"; 35 | } 36 | 37 | return $uri; 38 | } 39 | 40 | 41 | /** 42 | * @return string[] 43 | */ 44 | protected function getParamWhitelist() 45 | { 46 | return array( 47 | 'timeout', 48 | 'master_timeout', 49 | ); 50 | } 51 | 52 | 53 | /** 54 | * @return string 55 | */ 56 | protected function getMethod() 57 | { 58 | return 'DELETE'; 59 | } 60 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Gateway/Snapshot.php: -------------------------------------------------------------------------------- 1 | index; 26 | $uri = "/_gateway/snapshot"; 27 | 28 | 29 | if (isset($index) === true) { 30 | $uri = "/$index/_gateway/snapshot"; 31 | } 32 | 33 | return $uri; 34 | } 35 | 36 | /** 37 | * @return string[] 38 | */ 39 | protected function getParamWhitelist() 40 | { 41 | return array( 42 | 'ignore_unavailable', 43 | 'allow_no_indices', 44 | 'expand_wildcards' 45 | ); 46 | } 47 | 48 | /** 49 | * @return string 50 | */ 51 | protected function getMethod() 52 | { 53 | return 'POST'; 54 | } 55 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Recovery.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Recovery extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $index = $this->index; 31 | $uri = "/_recovery"; 32 | 33 | if (isset($index) === true) { 34 | $uri = "/$index/_recovery"; 35 | } 36 | 37 | return $uri; 38 | } 39 | 40 | 41 | /** 42 | * @return string[] 43 | */ 44 | protected function getParamWhitelist() 45 | { 46 | return array( 47 | 'detailed', 48 | 'active_only', 49 | 'human' 50 | ); 51 | } 52 | 53 | 54 | /** 55 | * @return string 56 | */ 57 | protected function getMethod() 58 | { 59 | return 'GET'; 60 | } 61 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Template/AbstractTemplateEndpoint.php: -------------------------------------------------------------------------------- 1 | name = $name; 27 | return $this; 28 | } 29 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Warmer/AbstractWarmerEndpoint.php: -------------------------------------------------------------------------------- 1 | name = $name; 28 | return $this; 29 | } 30 | 31 | 32 | /** 33 | * @return string 34 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 35 | */ 36 | protected function getWarmerURI() 37 | { 38 | if (isset($this->index) !== true) { 39 | throw new RuntimeException( 40 | 'index is required for Delete' 41 | ); 42 | } 43 | 44 | $uri = $this->getOptionalURI('_warmer'); 45 | 46 | $name = $this->name; 47 | if (isset($name) === true) { 48 | $uri .= "/$name"; 49 | } 50 | 51 | return $uri; 52 | } 53 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Info.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Info extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $uri = "/"; 31 | 32 | 33 | return $uri; 34 | } 35 | 36 | 37 | /** 38 | * @return string[] 39 | */ 40 | protected function getParamWhitelist() 41 | { 42 | return array( 43 | ); 44 | } 45 | 46 | 47 | /** 48 | * @return string 49 | */ 50 | protected function getMethod() 51 | { 52 | return 'GET'; 53 | } 54 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Ping.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Ping extends AbstractEndpoint 24 | { 25 | /** 26 | * @return string 27 | */ 28 | protected function getURI() 29 | { 30 | $uri = "/"; 31 | 32 | 33 | return $uri; 34 | } 35 | 36 | 37 | /** 38 | * @return string[] 39 | */ 40 | protected function getParamWhitelist() 41 | { 42 | return array( 43 | ); 44 | } 45 | 46 | 47 | /** 48 | * @return string 49 | */ 50 | protected function getMethod() 51 | { 52 | return 'HEAD'; 53 | } 54 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Template/Get.php: -------------------------------------------------------------------------------- 1 | 19 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 20 | * @link http://elasticsearch.org 21 | */ 22 | 23 | class Get extends AbstractEndpoint 24 | { 25 | 26 | /** 27 | * @throws \Elasticsearch\Common\Exceptions\RuntimeException 28 | * @return string 29 | */ 30 | protected function getURI() 31 | { 32 | if (isset($this->id) !== true) { 33 | throw new Exceptions\RuntimeException( 34 | 'id is required for Get' 35 | ); 36 | } 37 | $templateId = $this->id; 38 | $uri = "/_search/template/$templateId"; 39 | 40 | return $uri; 41 | } 42 | 43 | 44 | /** 45 | * @return string[] 46 | */ 47 | protected function getParamWhitelist() 48 | { 49 | return array(); 50 | } 51 | 52 | 53 | /** 54 | * @return string 55 | */ 56 | protected function getMethod() 57 | { 58 | return 'GET'; 59 | } 60 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Serializers/EverythingToJSONSerializer.php: -------------------------------------------------------------------------------- 1 | 15 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 16 | * @link http://elasticsearch.org 17 | */ 18 | class EverythingToJSONSerializer implements SerializerInterface 19 | { 20 | 21 | /** 22 | * Serialize assoc array into JSON string 23 | * 24 | * @param string|array $data Assoc array to encode into JSON 25 | * 26 | * @return string 27 | */ 28 | public function serialize($data) 29 | { 30 | $data = json_encode($data); 31 | if ($data === '[]') { 32 | return '{}'; 33 | } else { 34 | return $data; 35 | } 36 | } 37 | 38 | 39 | /** 40 | * Deserialize JSON into an assoc array 41 | * 42 | * @param string $data JSON encoded string 43 | * @param array $headers Response headers 44 | * 45 | * @return array 46 | */ 47 | public function deserialize($data, $headers) 48 | { 49 | return json_decode($data, true); 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Serializers/SerializerInterface.php: -------------------------------------------------------------------------------- 1 | 12 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 13 | * @link http://elasticsearch.org 14 | */ 15 | class SniffingConnectionPoolIntegrationTest extends \PHPUnit_Framework_TestCase 16 | { 17 | public function testSniff() { 18 | $params['connectionPoolClass'] = '\Elasticsearch\ConnectionPool\SniffingConnectionPool'; 19 | $params['connectionPoolParams']['sniffingInterval'] = -10; 20 | $params['hosts'] = array ($_SERVER['ES_TEST_HOST']); 21 | 22 | $client = new \Elasticsearch\Client($params); 23 | 24 | $client->ping(); 25 | 26 | } 27 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/Connections/GuzzleConnectionTest.php: -------------------------------------------------------------------------------- 1 | 21 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 22 | * @link http://elasticsearch.org 23 | */ 24 | class GuzzleConnectionTest extends \PHPUnit_Framework_TestCase 25 | { 26 | public function tearDown() 27 | { 28 | m::close(); 29 | } 30 | 31 | /** 32 | * @expectedException \Elasticsearch\Common\Exceptions\InvalidArgumentException 33 | */ 34 | public function testNoGuzzleClient() 35 | { 36 | $hostDetails = array('host' => 'localhost', 'port' => 9200); 37 | $connectionParams = null; 38 | 39 | $log = m::mock('\Monolog\Logger')->shouldReceive('critical')->once()->getMock(); 40 | 41 | $connection = new GuzzleConnection($hostDetails, $connectionParams, $log, $log); 42 | 43 | } 44 | 45 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/Endpoints/Cluster/Settings/GetTest.php: -------------------------------------------------------------------------------- 1 | 18 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 19 | * @link http://elasticsearch.org 20 | */ 21 | class GetTest extends \PHPUnit_Framework_TestCase 22 | { 23 | public function tearDown() { 24 | m::close(); 25 | } 26 | 27 | public function testValidGet() 28 | { 29 | $mockTransport = m::mock('\Elasticsearch\Transport') 30 | ->shouldReceive('performRequest')->once() 31 | ->with( 32 | 'GET', 33 | '/_cluster/settings', 34 | array(), 35 | null 36 | ) 37 | ->getMock(); 38 | 39 | $action = new Get($mockTransport); 40 | $action->performRequest(); 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/Endpoints/Cluster/StateTest.php: -------------------------------------------------------------------------------- 1 | 18 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 19 | * @link http://elasticsearch.org 20 | */ 21 | class StateTest extends \PHPUnit_Framework_TestCase 22 | { 23 | public function tearDown() { 24 | m::close(); 25 | } 26 | 27 | 28 | public function testValidState() 29 | { 30 | $mockTransport = m::mock('\Elasticsearch\Transport') 31 | ->shouldReceive('performRequest')->once() 32 | ->with( 33 | 'GET', 34 | '/_cluster/state', 35 | array(), 36 | null 37 | ) 38 | ->getMock(); 39 | 40 | $action = new State($mockTransport); 41 | $action->performRequest(); 42 | 43 | } 44 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/Endpoints/InfoTest.php: -------------------------------------------------------------------------------- 1 | 17 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 18 | * @link http://elasticsearch.org 19 | */ 20 | class InfoTest extends \PHPUnit_Framework_TestCase 21 | { 22 | public function tearDown() { 23 | m::close(); 24 | } 25 | 26 | 27 | public function testValidInfo() 28 | { 29 | $mockTransport = m::mock('\Elasticsearch\Transport') 30 | ->shouldReceive('performRequest')->once() 31 | ->with( 32 | 'GET', 33 | '/', 34 | array(), 35 | null 36 | ) 37 | ->getMock(); 38 | 39 | $action = new Info($mockTransport); 40 | $action->performRequest(); 41 | 42 | } 43 | } -------------------------------------------------------------------------------- /src/lib/vendor/elasticsearch/elasticsearch/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | workingCopy(dirname(__DIR__) . '/util/elasticsearch'); 29 | 30 | 31 | 32 | echo "Update elasticsearch submodule\n"; 33 | $git->fetchAll(array('verbose' => true)); 34 | 35 | 36 | $hash = $_SERVER['TEST_BUILD_REF']; 37 | echo "Checkout yaml tests (hash: $hash)\n"; 38 | $git->checkout($hash, array('force' => true, 'quiet' => true)); 39 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/common/Guzzle/Common/AbstractHasDispatcher.php: -------------------------------------------------------------------------------- 1 | eventDispatcher = $eventDispatcher; 25 | 26 | return $this; 27 | } 28 | 29 | public function getEventDispatcher() 30 | { 31 | if (!$this->eventDispatcher) { 32 | $this->eventDispatcher = new EventDispatcher(); 33 | } 34 | 35 | return $this->eventDispatcher; 36 | } 37 | 38 | public function dispatch($eventName, array $context = array()) 39 | { 40 | return $this->getEventDispatcher()->dispatch($eventName, new Event($context)); 41 | } 42 | 43 | public function addSubscriber(EventSubscriberInterface $subscriber) 44 | { 45 | $this->getEventDispatcher()->addSubscriber($subscriber); 46 | 47 | return $this; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/common/Guzzle/Common/Event.php: -------------------------------------------------------------------------------- 1 | context = $context; 21 | } 22 | 23 | public function getIterator() 24 | { 25 | return new \ArrayIterator($this->context); 26 | } 27 | 28 | public function offsetGet($offset) 29 | { 30 | return isset($this->context[$offset]) ? $this->context[$offset] : null; 31 | } 32 | 33 | public function offsetSet($offset, $value) 34 | { 35 | $this->context[$offset] = $value; 36 | } 37 | 38 | public function offsetExists($offset) 39 | { 40 | return isset($this->context[$offset]); 41 | } 42 | 43 | public function offsetUnset($offset) 44 | { 45 | unset($this->context[$offset]); 46 | } 47 | 48 | public function toArray() 49 | { 50 | return $this->context; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/common/Guzzle/Common/Exception/BadMethodCallException.php: -------------------------------------------------------------------------------- 1 | =5.3.2", 9 | "symfony/event-dispatcher": ">=2.1" 10 | }, 11 | "autoload": { 12 | "psr-0": { "Guzzle\\Common": "" } 13 | }, 14 | "target-dir": "Guzzle/Common", 15 | "extra": { 16 | "branch-alias": { 17 | "dev-master": "3.7-dev" 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/http/Guzzle/Http/Exception/ClientErrorResponseException.php: -------------------------------------------------------------------------------- 1 | request = $request; 26 | 27 | return $this; 28 | } 29 | 30 | /** 31 | * Get the request that caused the exception 32 | * 33 | * @return RequestInterface 34 | */ 35 | public function getRequest() 36 | { 37 | return $this->request; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/http/Guzzle/Http/Exception/ServerErrorResponseException.php: -------------------------------------------------------------------------------- 1 | 'Guzzle\Http\Message\Header\CacheControl', 15 | 'link' => 'Guzzle\Http\Message\Header\Link', 16 | ); 17 | 18 | public function createHeader($header, $value = null) 19 | { 20 | $lowercase = strtolower($header); 21 | 22 | return isset($this->mapping[$lowercase]) 23 | ? new $this->mapping[$lowercase]($header, $value) 24 | : new Header($header, $value); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/http/Guzzle/Http/Message/Header/HeaderFactoryInterface.php: -------------------------------------------------------------------------------- 1 | isUrlEncoding()) { 15 | return array($query->encodeValue($key) => implode(',', array_map(array($query, 'encodeValue'), $value))); 16 | } else { 17 | return array($key => implode(',', $value)); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/http/Guzzle/Http/QueryAggregator/DuplicateAggregator.php: -------------------------------------------------------------------------------- 1 | isUrlEncoding()) { 17 | return array($query->encodeValue($key) => array_map(array($query, 'encodeValue'), $value)); 18 | } else { 19 | return array($key => $value); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/http/Guzzle/Http/QueryAggregator/PhpAggregator.php: -------------------------------------------------------------------------------- 1 | $v) { 17 | $k = "{$key}[{$k}]"; 18 | if (is_array($v)) { 19 | $ret = array_merge($ret, self::aggregate($k, $v, $query)); 20 | } else { 21 | $ret[$query->encodeValue($k)] = $query->encodeValue($v); 22 | } 23 | } 24 | 25 | return $ret; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/http/Guzzle/Http/QueryAggregator/QueryAggregatorInterface.php: -------------------------------------------------------------------------------- 1 | =5.3.2", 16 | "guzzle/common": "self.version", 17 | "guzzle/parser": "self.version", 18 | "guzzle/stream": "self.version" 19 | }, 20 | "suggest": { 21 | "ext-curl": "*" 22 | }, 23 | "autoload": { 24 | "psr-0": { "Guzzle\\Http": "" } 25 | }, 26 | "target-dir": "Guzzle/Http", 27 | "extra": { 28 | "branch-alias": { 29 | "dev-master": "3.7-dev" 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/parser/Guzzle/Parser/Message/MessageParserInterface.php: -------------------------------------------------------------------------------- 1 | =5.3.2" 9 | }, 10 | "autoload": { 11 | "psr-0": { "Guzzle\\Parser": "" } 12 | }, 13 | "target-dir": "Guzzle/Parser", 14 | "extra": { 15 | "branch-alias": { 16 | "dev-master": "3.7-dev" 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/lib/vendor/guzzle/stream/Guzzle/Stream/StreamRequestFactoryInterface.php: -------------------------------------------------------------------------------- 1 | =5.3.2", 16 | "guzzle/common": "self.version" 17 | }, 18 | "suggest": { 19 | "guzzle/http": "To convert Guzzle request objects to PHP streams" 20 | }, 21 | "autoload": { 22 | "psr-0": { "Guzzle\\Stream": "" } 23 | }, 24 | "target-dir": "Guzzle/Stream", 25 | "extra": { 26 | "branch-alias": { 27 | "dev-master": "3.7-dev" 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2014 Jordi Boggiano 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 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/doc/sockets.md: -------------------------------------------------------------------------------- 1 | Sockets Handler 2 | =============== 3 | 4 | This handler allows you to write your logs to sockets using [fsockopen](http://php.net/fsockopen) 5 | or [pfsockopen](http://php.net/pfsockopen). 6 | 7 | Persistent sockets are mainly useful in web environments where you gain some performance not closing/opening 8 | the connections between requests. 9 | 10 | Basic Example 11 | ------------- 12 | 13 | ```php 14 | setPersistent(true); 25 | 26 | // Now add the handler 27 | $logger->pushHandler($handler, Logger::DEBUG); 28 | 29 | // You can now use your logger 30 | $logger->addInfo('My logger is now ready'); 31 | 32 | ``` 33 | 34 | In this example, using syslog-ng, you should see the log on the log server: 35 | 36 | cweb1 [2012-02-26 00:12:03] my_logger.INFO: My logger is now ready [] [] 37 | 38 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | tests/Monolog/ 7 | 8 | 9 | 10 | 11 | 12 | src/Monolog/ 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.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 Monolog\Formatter; 13 | 14 | /** 15 | * Interface for formatters 16 | * 17 | * @author Jordi Boggiano 18 | */ 19 | interface FormatterInterface 20 | { 21 | /** 22 | * Formats a log record. 23 | * 24 | * @param array $record A record to format 25 | * @return mixed The formatted record 26 | */ 27 | public function format(array $record); 28 | 29 | /** 30 | * Formats a set of log records. 31 | * 32 | * @param array $records A set of records to format 33 | * @return mixed The formatted set of records 34 | */ 35 | public function formatBatch(array $records); 36 | } 37 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.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 Monolog\Formatter; 13 | 14 | /** 15 | * Formats data into an associative array of scalar values. 16 | * Objects and arrays will be JSON encoded. 17 | * 18 | * @author Andrew Lawson 19 | */ 20 | class ScalarFormatter extends NormalizerFormatter 21 | { 22 | /** 23 | * {@inheritdoc} 24 | */ 25 | public function format(array $record) 26 | { 27 | foreach ($record as $key => $value) { 28 | $record[$key] = $this->normalizeValue($value); 29 | } 30 | 31 | return $record; 32 | } 33 | 34 | /** 35 | * @param mixed $value 36 | * @return mixed 37 | */ 38 | protected function normalizeValue($value) 39 | { 40 | $normalized = $this->normalize($value); 41 | 42 | if (is_array($normalized) || is_object($normalized)) { 43 | return $this->toJson($normalized, true); 44 | } 45 | 46 | return $normalized; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.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 Monolog\Handler; 13 | 14 | use Monolog\Logger; 15 | use Monolog\Formatter\NormalizerFormatter; 16 | use Doctrine\CouchDB\CouchDBClient; 17 | 18 | /** 19 | * CouchDB handler for Doctrine CouchDB ODM 20 | * 21 | * @author Markus Bachmann 22 | */ 23 | class DoctrineCouchDBHandler extends AbstractProcessingHandler 24 | { 25 | private $client; 26 | 27 | public function __construct(CouchDBClient $client, $level = Logger::DEBUG, $bubble = true) 28 | { 29 | $this->client = $client; 30 | parent::__construct($level, $bubble); 31 | } 32 | 33 | /** 34 | * {@inheritDoc} 35 | */ 36 | protected function write(array $record) 37 | { 38 | $this->client->postDocument($record['formatted']); 39 | } 40 | 41 | protected function getDefaultFormatter() 42 | { 43 | return new NormalizerFormatter; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.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 Monolog\Handler\FingersCrossed; 13 | 14 | /** 15 | * Interface for activation strategies for the FingersCrossedHandler. 16 | * 17 | * @author Johannes M. Schmitt 18 | */ 19 | interface ActivationStrategyInterface 20 | { 21 | /** 22 | * Returns whether the given record activates the handler. 23 | * 24 | * @param array $record 25 | * @return Boolean 26 | */ 27 | public function isHandlerActivated(array $record); 28 | } 29 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.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 Monolog\Handler\FingersCrossed; 13 | 14 | /** 15 | * Error level based activation strategy. 16 | * 17 | * @author Johannes M. Schmitt 18 | */ 19 | class ErrorLevelActivationStrategy implements ActivationStrategyInterface 20 | { 21 | private $actionLevel; 22 | 23 | public function __construct($actionLevel) 24 | { 25 | $this->actionLevel = $actionLevel; 26 | } 27 | 28 | public function isHandlerActivated(array $record) 29 | { 30 | return $record['level'] >= $this->actionLevel; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.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 Monolog\Handler; 13 | 14 | /** 15 | * Exception can be thrown if an extension for an handler is missing 16 | * 17 | * @author Christian Bergau 18 | */ 19 | class MissingExtensionException extends \Exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.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 Monolog\Handler; 13 | 14 | use Monolog\Logger; 15 | 16 | /** 17 | * Blackhole 18 | * 19 | * Any record it can handle will be thrown away. This can be used 20 | * to put on top of an existing stack to override it temporarily. 21 | * 22 | * @author Jordi Boggiano 23 | */ 24 | class NullHandler extends AbstractHandler 25 | { 26 | /** 27 | * @param integer $level The minimum logging level at which this handler will be triggered 28 | */ 29 | public function __construct($level = Logger::DEBUG) 30 | { 31 | parent::__construct($level, false); 32 | } 33 | 34 | /** 35 | * {@inheritdoc} 36 | */ 37 | public function handle(array $record) 38 | { 39 | if ($record['level'] < $this->level) { 40 | return false; 41 | } 42 | 43 | return true; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.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 Monolog\Processor; 13 | 14 | /** 15 | * Injects memory_get_peak_usage in all records 16 | * 17 | * @see Monolog\Processor\MemoryProcessor::__construct() for options 18 | * @author Rob Jensen 19 | */ 20 | class MemoryPeakUsageProcessor extends MemoryProcessor 21 | { 22 | /** 23 | * @param array $record 24 | * @return array 25 | */ 26 | public function __invoke(array $record) 27 | { 28 | $bytes = memory_get_peak_usage($this->realUsage); 29 | $formatted = $this->formatBytes($bytes); 30 | 31 | $record['extra'] = array_merge( 32 | $record['extra'], 33 | array( 34 | 'memory_peak_usage' => $formatted, 35 | ) 36 | ); 37 | 38 | return $record; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.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 Monolog\Processor; 13 | 14 | /** 15 | * Injects memory_get_usage in all records 16 | * 17 | * @see Monolog\Processor\MemoryProcessor::__construct() for options 18 | * @author Rob Jensen 19 | */ 20 | class MemoryUsageProcessor extends MemoryProcessor 21 | { 22 | /** 23 | * @param array $record 24 | * @return array 25 | */ 26 | public function __invoke(array $record) 27 | { 28 | $bytes = memory_get_usage($this->realUsage); 29 | $formatted = $this->formatBytes($bytes); 30 | 31 | $record['extra'] = array_merge( 32 | $record['extra'], 33 | array( 34 | 'memory_usage' => $formatted, 35 | ) 36 | ); 37 | 38 | return $record; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.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 Monolog\Processor; 13 | 14 | /** 15 | * Adds value of getmypid into records 16 | * 17 | * @author Andreas Hörnicke 18 | */ 19 | class ProcessIdProcessor 20 | { 21 | /** 22 | * @param array $record 23 | * @return array 24 | */ 25 | public function __invoke(array $record) 26 | { 27 | $record['extra']['process_id'] = getmypid(); 28 | 29 | return $record; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.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 Monolog\Processor; 13 | 14 | /** 15 | * Processes a record's message according to PSR-3 rules 16 | * 17 | * It replaces {foo} with the value from $context['foo'] 18 | * 19 | * @author Jordi Boggiano 20 | */ 21 | class PsrLogMessageProcessor 22 | { 23 | /** 24 | * @param array $record 25 | * @return array 26 | */ 27 | public function __invoke(array $record) 28 | { 29 | if (false === strpos($record['message'], '{')) { 30 | return $record; 31 | } 32 | 33 | $replacements = array(); 34 | foreach ($record['context'] as $key => $val) { 35 | $replacements['{'.$key.'}'] = $val; 36 | } 37 | 38 | $record['message'] = strtr($record['message'], $replacements); 39 | 40 | return $record; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.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 Monolog\Processor; 13 | 14 | /** 15 | * Adds a tags array into record 16 | * 17 | * @author Martijn Riemers 18 | */ 19 | class TagProcessor 20 | { 21 | private $tags; 22 | 23 | public function __construct(array $tags = array()) 24 | { 25 | $this->tags = $tags; 26 | } 27 | 28 | public function __invoke(array $record) 29 | { 30 | $record['extra']['tags'] = $this->tags; 31 | 32 | return $record; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.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 Monolog\Processor; 13 | 14 | /** 15 | * Adds a unique identifier into records 16 | * 17 | * @author Simon Mönch 18 | */ 19 | class UidProcessor 20 | { 21 | private $uid; 22 | 23 | public function __construct($length = 7) 24 | { 25 | if (!is_int($length) || $length > 32 || $length < 1) { 26 | throw new \InvalidArgumentException('The uid length must be an integer between 1 and 32'); 27 | } 28 | 29 | $this->uid = substr(hash('md5', uniqid('', true)), 0, $length); 30 | } 31 | 32 | public function __invoke(array $record) 33 | { 34 | $record['extra']['uid'] = $this->uid; 35 | 36 | return $record; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/ErrorHandlerTest.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 Monolog; 13 | 14 | use Monolog\Handler\TestHandler; 15 | 16 | class ErrorHandlerTest extends \PHPUnit_Framework_TestCase 17 | { 18 | public function testHandleError() 19 | { 20 | $logger = new Logger('test', array($handler = new TestHandler)); 21 | $errHandler = new ErrorHandler($logger); 22 | 23 | $errHandler->registerErrorHandler(array(E_USER_NOTICE => Logger::EMERGENCY), false); 24 | trigger_error('Foo', E_USER_ERROR); 25 | $this->assertCount(1, $handler->getRecords()); 26 | $this->assertTrue($handler->hasErrorRecords()); 27 | trigger_error('Foo', E_USER_NOTICE); 28 | $this->assertCount(2, $handler->getRecords()); 29 | $this->assertTrue($handler->hasEmergencyRecords()); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Formatter/LogglyFormatterTest.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 Monolog\Formatter; 13 | 14 | use Monolog\TestCase; 15 | 16 | class LogglyFormatterTest extends TestCase 17 | { 18 | /** 19 | * @covers Monolog\Formatter\LogglyFormatter::__construct 20 | */ 21 | public function testConstruct() 22 | { 23 | $formatter = new LogglyFormatter(); 24 | $this->assertEquals(LogglyFormatter::BATCH_MODE_NEWLINES, $formatter->getBatchMode()); 25 | $formatter = new LogglyFormatter(LogglyFormatter::BATCH_MODE_JSON); 26 | $this->assertEquals(LogglyFormatter::BATCH_MODE_JSON, $formatter->getBatchMode()); 27 | } 28 | 29 | /** 30 | * @covers Monolog\Formatter\LogglyFormatter::format 31 | */ 32 | public function testFormat() 33 | { 34 | $formatter = new LogglyFormatter(); 35 | $record = $this->getRecord(); 36 | $formatted_decoded = json_decode($formatter->format($record), true); 37 | $this->assertArrayHasKey("timestamp", $formatted_decoded); 38 | $this->assertEquals(new \DateTime($formatted_decoded["timestamp"]), $record["datetime"]); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Functional/Handler/FirePHPHandlerTest.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 | spl_autoload_register(function ($class) { 13 | $file = __DIR__.'/../../../../src/'.strtr($class, '\\', '/').'.php'; 14 | if (file_exists($file)) { 15 | require $file; 16 | 17 | return true; 18 | } 19 | }); 20 | 21 | use Monolog\Logger; 22 | use Monolog\Handler\FirePHPHandler; 23 | use Monolog\Handler\ChromePHPHandler; 24 | 25 | $logger = new Logger('firephp'); 26 | $logger->pushHandler(new FirePHPHandler); 27 | $logger->pushHandler(new ChromePHPHandler()); 28 | 29 | $logger->addDebug('Debug'); 30 | $logger->addInfo('Info'); 31 | $logger->addWarning('Warning'); 32 | $logger->addError('Error'); 33 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.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 Monolog\Handler; 13 | 14 | use Monolog\TestCase; 15 | use Monolog\Logger; 16 | 17 | class CouchDBHandlerTest extends TestCase 18 | { 19 | public function testHandle() 20 | { 21 | $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34)); 22 | 23 | $expected = array( 24 | 'message' => 'test', 25 | 'context' => array('data' => '[object] (stdClass: {})', 'foo' => 34), 26 | 'level' => Logger::WARNING, 27 | 'level_name' => 'WARNING', 28 | 'channel' => 'test', 29 | 'datetime' => $record['datetime']->format('Y-m-d H:i:s'), 30 | 'extra' => array(), 31 | ); 32 | 33 | $handler = new CouchDBHandler(); 34 | 35 | try { 36 | $handler->handle($record); 37 | } catch (\RuntimeException $e) { 38 | $this->markTestSkipped('Could not connect to couchdb server on http://localhost:5984'); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smile-SA/smile-magento-elasticsearch/9becbda82ad5674d458b3ca47b925de2692fbef7/src/lib/vendor/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Handler/MockRavenClient.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 Monolog\Handler; 13 | 14 | use Raven_Client; 15 | 16 | class MockRavenClient extends Raven_Client 17 | { 18 | public function capture($data, $stack, $vars = null) 19 | { 20 | $this->lastData = $data; 21 | $this->lastStack = $stack; 22 | } 23 | 24 | public $lastData; 25 | public $lastStack; 26 | } 27 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.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 Monolog\Handler; 13 | 14 | use Monolog\TestCase; 15 | use Monolog\Logger; 16 | 17 | /** 18 | * @covers Monolog\Handler\NullHandler::handle 19 | */ 20 | class NullHandlerTest extends TestCase 21 | { 22 | public function testHandle() 23 | { 24 | $handler = new NullHandler(); 25 | $this->assertTrue($handler->handle($this->getRecord())); 26 | } 27 | 28 | public function testHandleLowerLevelRecord() 29 | { 30 | $handler = new NullHandler(Logger::WARNING); 31 | $this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG))); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php: -------------------------------------------------------------------------------- 1 | setFormatter(new \Monolog\Formatter\ChromePHPFormatter()); 19 | 20 | $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('write'), array('lol', 'lol')); 21 | $socket->expects($this->at(0)) 22 | ->method('write') 23 | ->with("lol", "<".(LOG_AUTHPRIV + LOG_WARNING).">: "); 24 | $socket->expects($this->at(1)) 25 | ->method('write') 26 | ->with("hej", "<".(LOG_AUTHPRIV + LOG_WARNING).">: "); 27 | 28 | $handler->setSocket($socket); 29 | 30 | $handler->handle($this->getRecordWithMessage("hej\nlol")); 31 | } 32 | 33 | protected function getRecordWithMessage($msg) 34 | { 35 | return array('message' => $msg, 'level' => \Monolog\Logger::WARNING, 'context' => null, 'extra' => array(), 'channel' => 'lol'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.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 Monolog\Processor; 13 | 14 | use Monolog\TestCase; 15 | 16 | class GitProcessorTest extends TestCase 17 | { 18 | /** 19 | * @covers Monolog\Processor\GitProcessor::__invoke 20 | */ 21 | public function testProcessor() 22 | { 23 | $processor = new GitProcessor(); 24 | $record = $processor($this->getRecord()); 25 | 26 | $this->assertArrayHasKey('git', $record['extra']); 27 | $this->assertTrue(!is_array($record['extra']['git']['branch'])); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.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 Monolog\Processor; 13 | 14 | use Monolog\TestCase; 15 | 16 | class ProcessIdProcessorTest extends TestCase 17 | { 18 | /** 19 | * @covers Monolog\Processor\ProcessIdProcessor::__invoke 20 | */ 21 | public function testProcessor() 22 | { 23 | $processor = new ProcessIdProcessor(); 24 | $record = $processor($this->getRecord()); 25 | $this->assertArrayHasKey('process_id', $record['extra']); 26 | $this->assertInternalType('int', $record['extra']['process_id']); 27 | $this->assertGreaterThan(0, $record['extra']['process_id']); 28 | $this->assertEquals(getmypid(), $record['extra']['process_id']); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.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 Monolog\Processor; 13 | 14 | use Monolog\TestCase; 15 | 16 | class TagProcessorTest extends TestCase 17 | { 18 | /** 19 | * @covers Monolog\Processor\TagProcessor::__invoke 20 | */ 21 | public function testProcessor() 22 | { 23 | $tags = array(1, 2, 3); 24 | $processor = new TagProcessor($tags); 25 | $record = $processor($this->getRecord()); 26 | 27 | $this->assertEquals($tags, $record['extra']['tags']); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.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 Monolog\Processor; 13 | 14 | use Monolog\TestCase; 15 | 16 | class UidProcessorTest extends TestCase 17 | { 18 | /** 19 | * @covers Monolog\Processor\UidProcessor::__invoke 20 | */ 21 | public function testProcessor() 22 | { 23 | $processor = new UidProcessor(); 24 | $record = $processor($this->getRecord()); 25 | $this->assertArrayHasKey('uid', $record['extra']); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/Monolog/PsrLogCompatTest.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 Monolog; 13 | 14 | use Monolog\Handler\TestHandler; 15 | use Monolog\Formatter\LineFormatter; 16 | use Monolog\Processor\PsrLogMessageProcessor; 17 | use Psr\Log\Test\LoggerInterfaceTest; 18 | 19 | class PsrLogCompatTest extends LoggerInterfaceTest 20 | { 21 | private $handler; 22 | 23 | public function getLogger() 24 | { 25 | $logger = new Logger('foo'); 26 | $logger->pushHandler($handler = new TestHandler); 27 | $logger->pushProcessor(new PsrLogMessageProcessor); 28 | $handler->setFormatter(new LineFormatter('%level_name% %message%')); 29 | 30 | $this->handler = $handler; 31 | 32 | return $logger; 33 | } 34 | 35 | public function getLogs() 36 | { 37 | $convert = function ($record) { 38 | $lower = function ($match) { 39 | return strtolower($match[0]); 40 | }; 41 | 42 | return preg_replace_callback('{^[A-Z]+}', $lower, $record['formatted']); 43 | }; 44 | 45 | return array_map($convert, $this->handler->getRecords()); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/lib/vendor/monolog/monolog/tests/bootstrap.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 | $loader = require __DIR__ . "/../vendor/autoload.php"; 13 | $loader->addPsr4('Monolog\\', __DIR__.'/Monolog'); 14 | 15 | date_default_timezone_set('UTC'); 16 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/.gitignore: -------------------------------------------------------------------------------- 1 | phpunit.xml 2 | composer.lock 3 | /vendor/ 4 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | env: 4 | matrix: 5 | - PIMPLE_EXT=no 6 | - PIMPLE_EXT=yes 7 | global: 8 | - REPORT_EXIT_STATUS=1 9 | 10 | php: 11 | - 5.3 12 | - 5.4 13 | - 5.5 14 | - 5.6 15 | - hhvm 16 | 17 | before_script: 18 | - composer self-update 19 | - COMPOSER_ROOT_VERSION=dev-master composer dump-autoload 20 | - if [ "$PIMPLE_EXT" == "yes" ]; then sh -c "cd ext/pimple && phpize && ./configure && make && sudo make install"; fi 21 | - if [ "$PIMPLE_EXT" == "yes" ]; then echo "extension=pimple.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi 22 | 23 | script: 24 | - cd ext/pimple 25 | - if [ "$PIMPLE_EXT" == "yes" ]; then yes n | make test | tee output ; grep -E 'Tests failed +. +0' output; fi 26 | - cd ../.. 27 | - phpunit 28 | 29 | matrix: 30 | exclude: 31 | - php: hhvm 32 | env: PIMPLE_EXT=yes 33 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/CHANGELOG: -------------------------------------------------------------------------------- 1 | * 2.1.1 (2014-07-24) 2 | 3 | * fixed compiler warnings for the C extension 4 | * fixed code when dealing with circular references 5 | 6 | * 2.1.0 (2014-06-24) 7 | 8 | * moved the Pimple to Pimple\Container (with a BC layer -- Pimple is now a 9 | deprecated alias which will be removed in Pimple 3.0) 10 | * added Pimple\ServiceProviderInterface (and Pimple::register()) 11 | 12 | * 2.0.0 (2014-02-10) 13 | 14 | * changed extend to automatically re-assign the extended service and keep it as shared or factory 15 | (to keep BC, extend still returns the extended service) 16 | * changed services to be shared by default (use factory() for factory 17 | services) 18 | 19 | * 1.0.0 20 | 21 | * initial version 22 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2014 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 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pimple/pimple", 3 | "type": "library", 4 | "description": "Pimple is a simple Dependency Injection Container for PHP 5.3", 5 | "keywords": ["dependency injection", "container"], 6 | "homepage": "http://pimple.sensiolabs.org", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Fabien Potencier", 11 | "email": "fabien@symfony.com" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.0" 16 | }, 17 | "autoload": { 18 | "psr-0": { "Pimple": "src/" } 19 | }, 20 | "autoload-dev": { 21 | "psr-4": { "Pimple\\Tests\\": "tests/" } 22 | }, 23 | "extra": { 24 | "branch-alias": { 25 | "dev-master": "2.1.x-dev" 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/.gitignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | .deps 3 | Makefile 4 | Makefile.fragments 5 | Makefile.global 6 | Makefile.objects 7 | acinclude.m4 8 | aclocal.m4 9 | build/ 10 | config.cache 11 | config.guess 12 | config.h 13 | config.h.in 14 | config.log 15 | config.nice 16 | config.status 17 | config.sub 18 | configure 19 | configure.in 20 | install-sh 21 | libtool 22 | ltmain.sh 23 | missing 24 | mkinstalldirs 25 | run-tests.php 26 | *.loT 27 | .libs/ 28 | modules/ 29 | *.la 30 | *.lo 31 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/README.md: -------------------------------------------------------------------------------- 1 | This is Pimple 2 implemented in C 2 | 3 | * PHP >= 5.3 4 | * Not tested under Windows, might work 5 | 6 | Install 7 | ======= 8 | 9 | > phpize 10 | > ./configure 11 | > make 12 | > make install 13 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/config.w32: -------------------------------------------------------------------------------- 1 | // $Id$ 2 | // vim:ft=javascript 3 | 4 | // If your extension references something external, use ARG_WITH 5 | // ARG_WITH("pimple", "for pimple support", "no"); 6 | 7 | // Otherwise, use ARG_ENABLE 8 | // ARG_ENABLE("pimple", "enable pimple support", "no"); 9 | 10 | if (PHP_PIMPLE != "no") { 11 | EXTENSION("pimple", "pimple.c"); 12 | } 13 | 14 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/001.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test for read_dim/write_dim handlers 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | 38 | 39 | --EXPECTF-- 40 | foo 41 | 42 42 | foo2 43 | foo99 44 | baz 45 | strstr -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/002.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test for constructor 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | 'foo')); 11 | var_dump($p[42]); 12 | ?> 13 | --EXPECT-- 14 | NULL 15 | string(3) "foo" 16 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/003.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test empty dimensions 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | 14 | --EXPECT-- 15 | int(42) 16 | string(3) "bar" -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/004.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test has/unset dim handlers 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | 24 | --EXPECT-- 25 | int(42) 26 | NULL 27 | bool(true) 28 | bool(false) 29 | bool(true) 30 | bool(true) -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/005.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test simple class inheritance 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | someAttr; 23 | ?> 24 | --EXPECT-- 25 | string(3) "hit" 26 | foo 27 | fooAttr -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/006.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test complex class inheritance 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | 'bar', 88 => 'baz'); 38 | 39 | $p = new TestPimple($defaultValues); 40 | $p[42] = 'foo'; 41 | var_dump($p[42]); 42 | var_dump($p[0]); 43 | ?> 44 | --EXPECT-- 45 | string(13) "hit offsetset" 46 | string(27) "hit offsetget in TestPimple" 47 | string(25) "hit offsetget in MyPimple" 48 | string(3) "foo" 49 | string(27) "hit offsetget in TestPimple" 50 | string(25) "hit offsetget in MyPimple" 51 | string(3) "baz" -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/007.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test for read_dim/write_dim handlers 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | 20 | --EXPECTF-- 21 | foo 22 | 42 -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/008.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test frozen services 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | 29 | --EXPECTF-- 30 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/009.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test service is called as callback, and only once 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | 12 | --EXPECTF-- 13 | bool(true) -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/010.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test service is called as callback for every callback type 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | 36 | --EXPECTF-- 37 | callme 38 | called 39 | Foo::bar 40 | array(2) { 41 | [0]=> 42 | string(3) "Foo" 43 | [1]=> 44 | string(3) "bar" 45 | } -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/011.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test service callback throwing an exception 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | 18 | --EXPECTF-- 19 | all right! -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/012.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test service factory 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | factory($f = function() { var_dump('called-1'); return 'ret-1';}); 11 | 12 | $p[] = $f; 13 | 14 | $p[] = function () { var_dump('called-2'); return 'ret-2'; }; 15 | 16 | var_dump($p[0]); 17 | var_dump($p[0]); 18 | var_dump($p[1]); 19 | var_dump($p[1]); 20 | ?> 21 | --EXPECTF-- 22 | string(8) "called-1" 23 | string(5) "ret-1" 24 | string(8) "called-1" 25 | string(5) "ret-1" 26 | string(8) "called-2" 27 | string(5) "ret-2" 28 | string(5) "ret-2" -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/013.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test keys() 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | keys()); 11 | 12 | $p['foo'] = 'bar'; 13 | $p[] = 'foo'; 14 | 15 | var_dump($p->keys()); 16 | 17 | unset($p['foo']); 18 | 19 | var_dump($p->keys()); 20 | ?> 21 | --EXPECTF-- 22 | array(0) { 23 | } 24 | array(2) { 25 | [0]=> 26 | string(3) "foo" 27 | [1]=> 28 | int(0) 29 | } 30 | array(1) { 31 | [0]=> 32 | int(0) 33 | } -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/014.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test raw() 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | raw('foo')); 16 | var_dump($p[42]); 17 | 18 | unset($p['foo']); 19 | 20 | try { 21 | $p->raw('foo'); 22 | echo "expected exception"; 23 | } catch (InvalidArgumentException $e) { } 24 | --EXPECTF-- 25 | string(8) "called-2" 26 | string(5) "ret-2" 27 | object(Closure)#%i (0) { 28 | } 29 | string(8) "called-2" 30 | string(5) "ret-2" -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/015.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test protect() 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | protect($f); 13 | 14 | var_dump($p['foo']); 15 | --EXPECTF-- 16 | object(Closure)#%i (0) { 17 | } -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/016.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test extend() 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | extend(12, function ($w) { var_dump($w); return 'bar'; }); /* $callable in code above */ 19 | 20 | var_dump($c('param')); 21 | --EXPECTF-- 22 | string(5) "param" 23 | string(3) "foo" 24 | string(3) "bar" -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/017.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test extend() with exception in service extension 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | extend(12, function ($w) { throw new BadMethodCallException; }); 12 | 13 | try { 14 | $p[12]; 15 | echo "Exception expected"; 16 | } catch (BadMethodCallException $e) { } 17 | --EXPECTF-- 18 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/017_1.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test extend() with exception in service factory 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | extend(12, function ($w) { return 'foobar'; }); 12 | 13 | try { 14 | $p[12]; 15 | echo "Exception expected"; 16 | } catch (BadMethodCallException $e) { } 17 | --EXPECTF-- 18 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/018.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | Test register() 3 | --SKIPIF-- 4 | 5 | --FILE-- 6 | register(new Foo, array(42 => 'bar')); 18 | 19 | var_dump($p[42]); 20 | --EXPECTF-- 21 | object(Pimple\Container)#1 (0) { 22 | } 23 | string(3) "bar" -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/bench.phpb: -------------------------------------------------------------------------------- 1 | factory($factory); 42 | 43 | $p['factory'] = $factory; 44 | 45 | echo $p['factory']; 46 | echo $p['factory']; 47 | echo $p['factory']; 48 | 49 | } 50 | 51 | echo microtime(true) - $time; 52 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/ext/pimple/tests/bench_shared.phpb: -------------------------------------------------------------------------------- 1 | 26 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 16 | ./tests/ 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/lib/vendor/pimple/pimple/src/Pimple.php: -------------------------------------------------------------------------------- 1 | logger = $logger; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/lib/vendor/psr/log/Psr/Log/NullLogger.php: -------------------------------------------------------------------------------- 1 | logger) { }` 11 | * blocks. 12 | */ 13 | class NullLogger extends AbstractLogger 14 | { 15 | /** 16 | * Logs with an arbitrary level. 17 | * 18 | * @param mixed $level 19 | * @param string $message 20 | * @param array $context 21 | * @return null 22 | */ 23 | public function log($level, $message, array $context = array()) 24 | { 25 | // noop 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/lib/vendor/psr/log/README.md: -------------------------------------------------------------------------------- 1 | PSR Log 2 | ======= 3 | 4 | This repository holds all interfaces/classes/traits related to 5 | [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md). 6 | 7 | Note that this is not a logger of its own. It is merely an interface that 8 | describes a logger. See the specification for more details. 9 | 10 | Usage 11 | ----- 12 | 13 | If you need a logger, you can use the interface like this: 14 | 15 | ```php 16 | logger = $logger; 27 | } 28 | 29 | public function doSomething() 30 | { 31 | if ($this->logger) { 32 | $this->logger->info('Doing work'); 33 | } 34 | 35 | // do something useful 36 | } 37 | } 38 | ``` 39 | 40 | You can then pick one of the implementations of the interface to get a logger. 41 | 42 | If you want to implement the interface, you can require this package and 43 | implement `Psr\Log\LoggerInterface` in your code. Please read the 44 | [specification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) 45 | for details. 46 | -------------------------------------------------------------------------------- /src/lib/vendor/psr/log/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/log", 3 | "description": "Common interface for logging libraries", 4 | "keywords": ["psr", "psr-3", "log"], 5 | "license": "MIT", 6 | "authors": [ 7 | { 8 | "name": "PHP-FIG", 9 | "homepage": "http://www.php-fig.org/" 10 | } 11 | ], 12 | "autoload": { 13 | "psr-0": { 14 | "Psr\\Log\\": "" 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/lib/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | composer.lock 3 | phpunit.xml 4 | -------------------------------------------------------------------------------- /src/lib/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | CHANGELOG 2 | ========= 3 | 4 | 2.5.0 5 | ----- 6 | 7 | * added Debug\TraceableEventDispatcher (originally in HttpKernel) 8 | * changed Debug\TraceableEventDispatcherInterface to extend EventDispatcherInterface 9 | * added RegisterListenersPass (originally in HttpKernel) 10 | 11 | 2.1.0 12 | ----- 13 | 14 | * added TraceableEventDispatcherInterface 15 | * added ContainerAwareEventDispatcher 16 | * added a reference to the EventDispatcher on the Event 17 | * added a reference to the Event name on the event 18 | * added fluid interface to the dispatch() method which now returns the Event 19 | object 20 | * added GenericEvent event class 21 | * added the possibility for subscribers to subscribe several times for the 22 | same event 23 | * added ImmutableEventDispatcher 24 | -------------------------------------------------------------------------------- /src/lib/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcherInterface.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\EventDispatcher\Debug; 13 | 14 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; 15 | 16 | /** 17 | * @author Fabien Potencier 18 | */ 19 | interface TraceableEventDispatcherInterface extends EventDispatcherInterface 20 | { 21 | /** 22 | * Gets the called listeners. 23 | * 24 | * @return array An array of called listeners 25 | */ 26 | public function getCalledListeners(); 27 | 28 | /** 29 | * Gets the not called listeners. 30 | * 31 | * @return array An array of not called listeners 32 | */ 33 | public function getNotCalledListeners(); 34 | } 35 | -------------------------------------------------------------------------------- /src/lib/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2004-2014 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 | -------------------------------------------------------------------------------- /src/lib/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/README.md: -------------------------------------------------------------------------------- 1 | EventDispatcher Component 2 | ========================= 3 | 4 | The Symfony2 EventDispatcher component implements the Mediator pattern in a 5 | simple and effective way to make your projects truly extensible. 6 | 7 | use Symfony\Component\EventDispatcher\EventDispatcher; 8 | use Symfony\Component\EventDispatcher\Event; 9 | 10 | $dispatcher = new EventDispatcher(); 11 | 12 | $dispatcher->addListener('event_name', function (Event $event) { 13 | // ... 14 | }); 15 | 16 | $dispatcher->dispatch('event_name'); 17 | 18 | Resources 19 | --------- 20 | 21 | You can run the unit tests with the following command: 22 | 23 | $ cd path/to/Symfony/Component/EventDispatcher/ 24 | $ composer.phar install 25 | $ phpunit 26 | -------------------------------------------------------------------------------- /src/lib/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/event-dispatcher", 3 | "type": "library", 4 | "description": "Symfony EventDispatcher 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/dependency-injection": "~2.0", 23 | "symfony/config": "~2.0", 24 | "symfony/stopwatch": "~2.2", 25 | "psr/log": "~1.0" 26 | }, 27 | "suggest": { 28 | "symfony/dependency-injection": "", 29 | "symfony/http-kernel": "" 30 | }, 31 | "autoload": { 32 | "psr-0": { "Symfony\\Component\\EventDispatcher\\": "" } 33 | }, 34 | "target-dir": "Symfony/Component/EventDispatcher", 35 | "minimum-stability": "dev", 36 | "extra": { 37 | "branch-alias": { 38 | "dev-master": "2.5-dev" 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/lib/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | ./Tests/ 12 | 13 | 14 | 15 | 16 | 17 | ./ 18 | 19 | ./Resources 20 | ./Tests 21 | ./vendor 22 | 23 | 24 | 25 | 26 | --------------------------------------------------------------------------------