Skip to content

Commit

Permalink
Merge branch '1.3'
Browse files Browse the repository at this point in the history
* 1.3: (34 commits)
  Fix ThemeBundle + plugins tests
  [Docs] Outdate User component
  [Docs] Outdate Taxonomy component
  [Docs] Outdate Taxation component
  [Docs] Outdate Shipping component
  [Docs] Outdate Registry component
  [Docs] Outdate Promotion component
  [Docs] Outdate Product component
  [Docs] Outdate Payment component
  [Docs] Outdate Order component
  [Docs] Outdate Mailer component
  [Docs] Outdate Locale component
  [Docs] Outdate Inventory component
  [Docs] Outdate Grid component
  [Docs] Outdate Currency component
  [Docs] Outdate Channel component
  [Docs] Outdate Attribute component
  [Docs] Outdate Addressing component
  [Docs] Outdate Components section index
  [Docs] Outdate UserBundle
  ...
  • Loading branch information
pamil committed Jan 15, 2019
2 parents b22fc98 + 06bc012 commit 163545e
Show file tree
Hide file tree
Showing 166 changed files with 1,154 additions and 146 deletions.
20 changes: 20 additions & 0 deletions app/TestAppKernel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

/**
* @internal
*/

declare(strict_types=1);

@trigger_error('The "TestAppKernel" class located at "app/TestAppKernel.php" is deprecated since Sylius 1.3. Use "Kernel" class located at "src/Kernel.php" instead.', \E_USER_DEPRECATED);

class_alias(Kernel::class, TestAppKernel::class);
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

_main:
resource: routing.yml

sylius_test_plugin_main:
path: /test/main
controller: FrameworkBundle:Template:template
Expand Down
5 changes: 5 additions & 0 deletions config/routes/test_cached/routing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sylius_test_plugin_main:
path: /test/main
controller: FrameworkBundle:Template:template
defaults:
template: "@SyliusTestPlugin/main.html.twig"
21 changes: 21 additions & 0 deletions docs/_themes/sylius_rtd_theme/static/css/sylius-custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,24 @@ div[class^='highlight'] {
background: none !important;
}

/* Outdated */
.outdated {
padding: 30px;
border: 2px dashed #f19e95;
background: #fdf2f1;
border-radius: 6px;
opacity: 0.7;
}

.outdated::before {
content: 'OUTDATED';
position: relative;
bottom: 40px;
right: 2px;
background: #f19e95;
color: #fdf2f1;
padding: 4px 10px;
border-radius: 60px;
font-size: 11px;
letter-spacing: 2px;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Forms
=====

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

The bundle ships with a set of useful form types for all models. You can use the defaults or :doc:`override them </customization/form>` with your own types.

Address form
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

SyliusAddressingBundle
======================

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

This bundle integrates the :doc:`/components_and_bundles/components/Addressing/index` into Symfony and Doctrine.

With minimal configuration you can introduce addresses, countries, provinces and zones management into your project.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Installation
============

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

We assume you're familiar with `Composer <http://packagist.org>`_, a dependency manager for PHP.
Use following command to add the bundle to your `composer.json` and download package.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Summary
=======

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

Configuration Reference
-----------------------

Expand Down Expand Up @@ -51,14 +58,6 @@ Configuration Reference
factory: Sylius\Component\Resource\Factory\Factory
form: Sylius\Bundle\AddressingBundle\Form\Type\ZoneMemberType
Tests
-----

.. code-block:: bash
$ composer install
$ vendor/bin/phpspec run -fpretty --verbose
Bug tracking
------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

ZoneMatcher
-----------

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

This bundle exposes the **ZoneMatcher** as ``sylius.zone_matcher`` service.

.. code-block:: php
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Configuration reference
=======================

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

.. code-block:: yaml
sylius_attribute:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

SyliusAttributeBundle
=====================

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

This bundle provides easy integration of the :doc:`Sylius Attribute component </components_and_bundles/components/Attribute/index>`
with any Symfony full-stack application.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Installation
============

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

We assume you're familiar with `Composer <http://packagist.org>`_, a dependency manager for PHP.
Use the following command to add the bundle to your `composer.json` and download the package.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

SyliusCustomerBundle
====================

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

A solution for customer management system inside of a Symfony application.

.. toctree::
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Installation
============

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

We assume you're familiar with `Composer <http://packagist.org>`_, a dependency manager for PHP.
Use the following command to add the bundle to your `composer.json` and download the package.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
.. rst-class:: outdated

Summary
=======

.. note::
.. danger::

To be written.
We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

Configuration reference
-----------------------
Expand Down Expand Up @@ -32,14 +35,6 @@ Configuration reference
factory: Sylius\Component\Resource\Factory\Factory
form: Sylius\Bundle\CustomerBundle\Form\Type\CustomerGroupType
`phpspec <http://phpspec.net>`_ examples
-----------------------------------------

.. code-block:: bash
$ composer install
$ vendor/bin/phpspec run -fpretty --verbose
Bug tracking
------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
Summary
=======

Tests
-----

.. code-block:: bash
$ composer install
$ vendor/bin/phpspec run
$ vendor/bin/phpunit
Bug tracking
------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,3 @@ If you wish to render more complex grid fields just redefine the path of the fie
<strong>{{ data.name }}</strong>
<p>{{ data.description|markdown }}</p>
Boolean (*boolean*)
-------------------

Boolean column type expects the value to be boolean and renders a default or custom Twig template.

.. code-block:: yaml
sylius_grid:
grids:
app_user:
fields:
status:
type: boolean
label: app.ui.status
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ This type filters by a chosen entity.
class: "%app.model.customer%"
Money
_____
-----

This filter checks if an amount is in range and in a specified currency

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Twig Extension
==============

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

There are two handy twig functions bundled in: `sylius_inventory_is_available` and `sylius_inventory_is_sufficient`.

They are simple proxies to the availability checker, and can be used to show if the stockable object is available/sufficient.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

SyliusInventoryBundle
=====================

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

Flexible inventory management for Symfony applications.

With minimal configuration you can implement inventory tracking in your project.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Installation
============

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

We assume you're familiar with `Composer <http://packagist.org>`_, a dependency manager for PHP.
Use the following command to add the bundle to your `composer.json` and download package.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Models
======

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

Here is a quick reference for the default models.

InventoryUnit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Using the services
==================

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

When using the bundle, you have access to several handy services.

AvailabilityChecker
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.. rst-class:: outdated

Summary
=======

.. danger::

We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!

Configuration reference
-----------------------

Expand Down Expand Up @@ -30,14 +37,6 @@ Configuration reference
model: ~ # The stockable model class.
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
`phpspec <http://phpspec.net>`_ examples
-----------------------------------------

.. code-block:: bash
$ composer install
$ vendor/bin/phpspec run -f pretty
Bug tracking
------------

Expand Down
Loading

0 comments on commit 163545e

Please sign in to comment.